Add associated LANES const
This commit is contained in:
parent
4fbccafc66
commit
ec05dfbbf9
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ where
|
|||
LaneCount<LANES>: SupportedLaneCount,
|
||||
T: SimdElement,
|
||||
{
|
||||
/// Number of lanes in this vector.
|
||||
pub const LANES: usize = LANES;
|
||||
|
||||
/// Get the number of lanes in this vector.
|
||||
pub const fn lanes(&self) -> usize {
|
||||
LANES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue