pub struct Const<const N: usize> {}Expand description
Move a const-generic into the type domain to work around issues with the use and compile-time computation involving const-generic parameters.
See the notes for the various helper traits in traits.rs.
Trait Implementations§
Source§impl SupportedLaneCount for Const<1>
impl SupportedLaneCount for Const<1>
type BitMaskType = u8
Source§impl SupportedLaneCount for Const<16>
impl SupportedLaneCount for Const<16>
type BitMaskType = u16
Source§impl SupportedLaneCount for Const<2>
impl SupportedLaneCount for Const<2>
type BitMaskType = u8
Source§impl SupportedLaneCount for Const<32>
impl SupportedLaneCount for Const<32>
type BitMaskType = u32
Source§impl SupportedLaneCount for Const<4>
impl SupportedLaneCount for Const<4>
type BitMaskType = u8
Source§impl SupportedLaneCount for Const<64>
impl SupportedLaneCount for Const<64>
type BitMaskType = u64
Source§impl SupportedLaneCount for Const<8>
impl SupportedLaneCount for Const<8>
type BitMaskType = u8
Auto Trait Implementations§
impl<const N: usize> Freeze for Const<N>
impl<const N: usize> RefUnwindSafe for Const<N>
impl<const N: usize> Send for Const<N>
impl<const N: usize> Sync for Const<N>
impl<const N: usize> Unpin for Const<N>
impl<const N: usize> UnwindSafe for Const<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more