pub struct uint24(/* private fields */);Implementations§
Source§impl uint24
impl uint24
pub const BITS: u32 = 24
pub const MIN: Self
pub const MAX: Self
pub const fn new(num: u32) -> Option<Self>
pub const unsafe fn new_unchecked(num: u32) -> Self
pub const fn from_be_bytes(bytes: [u8; 3]) -> Self
pub const fn to_be_bytes(self) -> [u8; 3]
pub const fn get(&self) -> u32
Trait Implementations§
impl Copy for uint24
impl Eq for uint24
Source§impl Ord for uint24
impl Ord for uint24
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for uint24
impl PartialOrd for uint24
Source§impl PartialOrd<u32> for uint24
impl PartialOrd<u32> for uint24
impl StructuralPartialEq for uint24
Auto Trait Implementations§
impl Freeze for uint24
impl RefUnwindSafe for uint24
impl Send for uint24
impl Sync for uint24
impl Unpin for uint24
impl UnsafeUnpin for uint24
impl UnwindSafe for uint24
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