pub struct Length { /* private fields */ }
Expand description
Implementations§
Source§impl Length
impl Length
pub const MAX: usize = 2_147_482_623usize
pub const ZERO: Self
Sourcepub const fn try_from_usize(len: usize) -> Result<Self, LengthError>
pub const fn try_from_usize(len: usize) -> Result<Self, LengthError>
Sourcepub const fn try_from_i32(len: i32) -> Result<Self, LengthError>
pub const fn try_from_i32(len: i32) -> Result<Self, LengthError>
Sourcepub const unsafe fn new_unchecked(len: i32) -> Self
pub const unsafe fn new_unchecked(len: i32) -> Self
Trait Implementations§
Source§impl Ord for Length
impl Ord for Length
Source§impl PartialOrd for Length
impl PartialOrd for Length
impl Copy for Length
impl Eq for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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