Skip to content

Commit ec05dfb

Browse files
committed
Add associated LANES const
1 parent 4fbccaf commit ec05dfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/core_simd/src/vector.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ where
2424
LaneCount<LANES>: SupportedLaneCount,
2525
T: SimdElement,
2626
{
27+
/// Number of lanes in this vector.
28+
pub const LANES: usize = LANES;
29+
2730
/// Get the number of lanes in this vector.
2831
pub const fn lanes(&self) -> usize {
2932
LANES

0 commit comments

Comments
 (0)