pub struct I48(/* private fields */);
Expand description
48-bit signed integer with alignment of 1.
Implementations§
Source§impl I48
impl I48
Sourcepub const fn to_ne_bytes(self) -> [u8; 6]
pub const fn to_ne_bytes(self) -> [u8; 6]
Returns the integer value as a byte array in native-endian order.
Sourcepub fn to_le_bytes(self) -> [u8; 6]
pub fn to_le_bytes(self) -> [u8; 6]
Returns the integer value as a byte array in little-endian order.
Sourcepub fn to_be_bytes(self) -> [u8; 6]
pub fn to_be_bytes(self) -> [u8; 6]
Returns the integer value as a byte array in big-endian order.
Sourcepub const fn from_ne_bytes(bytes: [u8; 6]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 6]) -> Self
Creates an unaligned signed integer from the given bytes in native-endian order.
Sourcepub fn from_le_bytes(bytes: [u8; 6]) -> Self
pub fn from_le_bytes(bytes: [u8; 6]) -> Self
Creates an unaligned signed integer from the given bytes in little-endian order.
Sourcepub fn from_be_bytes(bytes: [u8; 6]) -> Self
pub fn from_be_bytes(bytes: [u8; 6]) -> Self
Creates an unaligned signed integer from the given bytes in big-endian order.
Trait Implementations§
Source§impl Ord for I48
impl Ord for I48
Source§impl PartialOrd for I48
impl PartialOrd for I48
impl Copy for I48
impl Eq for I48
impl StructuralPartialEq for I48
Auto Trait Implementations§
impl Freeze for I48
impl RefUnwindSafe for I48
impl Send for I48
impl Sync for I48
impl Unpin for I48
impl UnwindSafe for I48
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