Struct binary_util::types::BE
source · pub struct BE<T>(pub T);
Expand description
Tuple Fields§
§0: T
Implementations§
Methods from Deref<Target = i16>§
pub const MIN: i16 = -32_768i16
pub const MAX: i16 = 32_767i16
pub const BITS: u32 = 16u32
Trait Implementations§
source§impl<T: Ord> Ord for BE<T>
impl<T: Ord> Ord for BE<T>
source§impl<T: PartialEq> PartialEq<BE<T>> for BE<T>
impl<T: PartialEq> PartialEq<BE<T>> for BE<T>
source§impl<T: PartialOrd> PartialOrd<BE<T>> for BE<T>
impl<T: PartialOrd> PartialOrd<BE<T>> for BE<T>
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 BE<f32>
impl Writer for BE<f32>
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.source§impl Writer for BE<f64>
impl Writer for BE<f64>
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.source§impl Writer for BE<i128>
impl Writer for BE<i128>
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.source§impl Writer for BE<i16>
impl Writer for BE<i16>
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.source§impl Writer for BE<i24>
impl Writer for BE<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.source§impl Writer for BE<i32>
impl Writer for BE<i32>
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.source§impl Writer for BE<i64>
impl Writer for BE<i64>
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.source§impl Writer for BE<u128>
impl Writer for BE<u128>
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.source§impl Writer for BE<u16>
impl Writer for BE<u16>
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.source§impl Writer for BE<u24>
impl Writer for BE<u24>
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.source§impl Writer for BE<u32>
impl Writer for BE<u32>
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.source§impl Writer for BE<u64>
impl Writer for BE<u64>
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<T: Copy> Copy for BE<T>
impl<T: Eq> Eq for BE<T>
impl<T> StructuralEq for BE<T>
impl<T> StructuralPartialEq for BE<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for BE<T>where T: RefUnwindSafe,
impl<T> Send for BE<T>where T: Send,
impl<T> Sync for BE<T>where T: Sync,
impl<T> Unpin for BE<T>where T: Unpin,
impl<T> UnwindSafe for BE<T>where T: UnwindSafe,
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