Add associated LANES const

This commit is contained in:
Magnus Ulimoen 2021-09-29 17:01:27 +00:00
parent 4fbccafc66
commit ec05dfbbf9

View file

@ -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