Struct object::endian::LittleEndian [−][src]
pub struct LittleEndian;
Compile-time little endian byte order.
Trait Implementations
impl Clone for LittleEndian
[src]
impl Clone for LittleEndian
[src]fn clone(&self) -> LittleEndian
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LittleEndian
[src]
impl Default for LittleEndian
[src]fn default() -> LittleEndian
[src]
impl Endian for LittleEndian
[src]
impl Endian for LittleEndian
[src]fn from_big_endian(big_endian: bool) -> Option<Self>
[src]
fn is_big_endian(self) -> bool
[src]
fn from_little_endian(little_endian: bool) -> Option<Self>
[src]
fn is_little_endian(self) -> bool
[src]
fn read_u16(self, n: u16) -> u16
[src]
fn read_u32(self, n: u32) -> u32
[src]
fn read_u64(self, n: u64) -> u64
[src]
fn read_i16(self, n: i16) -> i16
[src]
fn read_i32(self, n: i32) -> i32
[src]
fn read_i64(self, n: i64) -> i64
[src]
fn read_u16_bytes(self, n: [u8; 2]) -> u16
[src]
fn read_u32_bytes(self, n: [u8; 4]) -> u32
[src]
fn read_u64_bytes(self, n: [u8; 8]) -> u64
[src]
fn read_i16_bytes(self, n: [u8; 2]) -> i16
[src]
fn read_i32_bytes(self, n: [u8; 4]) -> i32
[src]
fn read_i64_bytes(self, n: [u8; 8]) -> i64
[src]
fn write_u16(self, n: u16) -> u16
[src]
fn write_u32(self, n: u32) -> u32
[src]
fn write_u64(self, n: u64) -> u64
[src]
fn write_i16(self, n: i16) -> i16
[src]
fn write_i32(self, n: i32) -> i32
[src]
fn write_i64(self, n: i64) -> i64
[src]
fn write_u16_bytes(self, n: u16) -> [u8; 2]
[src]
fn write_u32_bytes(self, n: u32) -> [u8; 4]
[src]
fn write_u64_bytes(self, n: u64) -> [u8; 8]
[src]
fn write_i16_bytes(self, n: i16) -> [u8; 2]
[src]
fn write_i32_bytes(self, n: i32) -> [u8; 4]
[src]
fn write_i64_bytes(self, n: i64) -> [u8; 8]
[src]
impl Hash for LittleEndian
[src]
impl Hash for LittleEndian
[src]impl PartialEq<LittleEndian> for LittleEndian
[src]
impl PartialEq<LittleEndian> for LittleEndian
[src]fn eq(&self, other: &LittleEndian) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl Copy for LittleEndian
[src]
impl Eq for LittleEndian
[src]
impl StructuralEq for LittleEndian
[src]
impl StructuralPartialEq for LittleEndian
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.