Skip to content

Commit ad8171e

Browse files
Add assoc const LANES
1 parent 81ceda8 commit ad8171e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core_simd/src/array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ where
1515
{
1616
/// The scalar type in every lane of this vector type.
1717
type Scalar: Copy + Sized;
18+
/// The number of lanes for this vector.
19+
const LANES: usize = LANES;
1820

1921
/// Generates a SIMD vector with the same value in every lane.
2022
#[must_use]

0 commit comments

Comments
 (0)