Struct binary_util::types::i24
source · pub struct i24(pub i32);
Expand description
Tuple Fields§
§0: i32
Implementations§
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Ord for i24
impl Ord for i24
source§impl PartialOrd<i24> for i24
impl PartialOrd<i24> for i24
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Writer for i24
impl Writer for i24
source§fn write_to_bytes(&self) -> Result<ByteWriter, Error>
fn write_to_bytes(&self) -> Result<ByteWriter, Error>
This is a utility function to write
Self
to a ByteWriter
without
needing to create a ByteWriter
first.impl Copy for i24
impl Eq for i24
impl StructuralEq for i24
impl StructuralPartialEq for i24
Auto Trait Implementations§
impl RefUnwindSafe for i24
impl Send for i24
impl Sync for i24
impl Unpin for i24
impl UnwindSafe for i24
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