#[repr(u8)]pub enum Eew {
E8 = 1,
E16 = 2,
E32 = 4,
E64 = 8,
}Expand description
Effective element width for vector memory operations
Variants§
Implementations§
Source§impl Eew
impl Eew
Sourcepub const fn from_width(width: u8) -> Option<Self>
pub const fn from_width(width: u8) -> Option<Self>
Decode the width field into an element width
Sourcepub const fn bits_width(self) -> u8
pub const fn bits_width(self) -> u8
Element width in bits
Sourcepub const fn bytes_width(self) -> u8
pub const fn bytes_width(self) -> u8
Element width in bytes.
Guaranteed to be <= Self::MAX_BYTES.
Trait Implementations§
impl Copy for Eew
impl Eq for Eew
impl StructuralPartialEq for Eew
Auto Trait Implementations§
impl Freeze for Eew
impl RefUnwindSafe for Eew
impl Send for Eew
impl Sync for Eew
impl Unpin for Eew
impl UnsafeUnpin for Eew
impl UnwindSafe for Eew
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