pub struct u8x2(/* private fields */);Expand description
Two u8 values packed as a u16.
Compared to using [u8; 2], this forces the data to have an alignment of 2,
and also keeps volatile reads and writes as a single access (when possible).
Implementations§
Trait Implementations§
impl Copy for u8x2
impl Eq for u8x2
Source§impl Ord for u8x2
impl Ord for u8x2
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for u8x2
impl PartialOrd for u8x2
impl StructuralPartialEq for u8x2
Auto Trait Implementations§
impl Freeze for u8x2
impl RefUnwindSafe for u8x2
impl Send for u8x2
impl Sync for u8x2
impl Unpin for u8x2
impl UnsafeUnpin for u8x2
impl UnwindSafe for u8x2
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