pub struct U31(/* private fields */);
Implementations§
Source§impl U31
impl U31
Sourcepub unsafe fn from_u8_unchecked(other: u8) -> Self
pub unsafe fn from_u8_unchecked(other: u8) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_u16_unchecked(other: u16) -> Self
pub unsafe fn from_u16_unchecked(other: u16) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_u32_unchecked(other: u32) -> Self
pub unsafe fn from_u32_unchecked(other: u32) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_usize_unchecked(other: usize) -> Self
pub unsafe fn from_usize_unchecked(other: usize) -> Self
Constructs the value without a range check.
Sourcepub fn into_usize(self) -> usize
pub fn into_usize(self) -> usize
Returns the value as a usize.
Trait Implementations§
impl Copy for U31
impl Eq for U31
impl StructuralPartialEq for U31
Auto Trait Implementations§
impl Freeze for U31
impl RefUnwindSafe for U31
impl Send for U31
impl Sync for U31
impl Unpin for U31
impl UnwindSafe for U31
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