Struct object::endian::LittleEndian [−][src]
pub struct LittleEndian;
Expand description
Compile-time little endian byte order.
Trait Implementations
impl Clone for LittleEndian
[src]
impl Clone for LittleEndian
[src]fn clone(&self) -> LittleEndian
[src]
fn clone(&self) -> LittleEndian
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for LittleEndian
[src]
impl Debug for LittleEndian
[src]impl Default for LittleEndian
[src]
impl Default for LittleEndian
[src]fn default() -> LittleEndian
[src]
fn default() -> LittleEndian
[src]Returns the “default value” for a type. Read more
impl Endian for LittleEndian
[src]
impl Endian for LittleEndian
[src]fn from_big_endian(big_endian: bool) -> Option<Self>
[src]
fn from_big_endian(big_endian: bool) -> Option<Self>
[src]Construct a specification for the endianness of some values. Read more
fn is_big_endian(self) -> bool
[src]
fn is_big_endian(self) -> bool
[src]Return true for big endian byte order.
fn from_little_endian(little_endian: bool) -> Option<Self>
[src]
fn from_little_endian(little_endian: bool) -> Option<Self>
[src]Construct a specification for the endianness of some values. Read more
fn is_little_endian(self) -> bool
[src]
fn is_little_endian(self) -> bool
[src]Return true for little endian byte order.
fn read_u16_bytes(self, n: [u8; 2]) -> u16
[src]
fn read_u16_bytes(self, n: [u8; 2]) -> u16
[src]Converts an unaligned unsigned 16 bit integer to native endian.
fn read_u32_bytes(self, n: [u8; 4]) -> u32
[src]
fn read_u32_bytes(self, n: [u8; 4]) -> u32
[src]Converts an unaligned unsigned 32 bit integer to native endian.
fn read_u64_bytes(self, n: [u8; 8]) -> u64
[src]
fn read_u64_bytes(self, n: [u8; 8]) -> u64
[src]Converts an unaligned unsigned 64 bit integer to native endian.
fn read_i16_bytes(self, n: [u8; 2]) -> i16
[src]
fn read_i16_bytes(self, n: [u8; 2]) -> i16
[src]Converts an unaligned signed 16 bit integer to native endian.
fn read_i32_bytes(self, n: [u8; 4]) -> i32
[src]
fn read_i32_bytes(self, n: [u8; 4]) -> i32
[src]Converts an unaligned signed 32 bit integer to native endian.
fn read_i64_bytes(self, n: [u8; 8]) -> i64
[src]
fn read_i64_bytes(self, n: [u8; 8]) -> i64
[src]Converts an unaligned signed 64 bit integer to native endian.
fn write_u16_bytes(self, n: u16) -> [u8; 2]
[src]
fn write_u16_bytes(self, n: u16) -> [u8; 2]
[src]Converts an unaligned unsigned 16 bit integer from native endian.
fn write_u32_bytes(self, n: u32) -> [u8; 4]
[src]
fn write_u32_bytes(self, n: u32) -> [u8; 4]
[src]Converts an unaligned unsigned 32 bit integer from native endian.
fn write_u64_bytes(self, n: u64) -> [u8; 8]
[src]
fn write_u64_bytes(self, n: u64) -> [u8; 8]
[src]Converts an unaligned unsigned 64 bit integer from native endian.
fn write_i16_bytes(self, n: i16) -> [u8; 2]
[src]
fn write_i16_bytes(self, n: i16) -> [u8; 2]
[src]Converts an unaligned signed 16 bit integer from native endian.
impl Hash for LittleEndian
[src]
impl Hash for LittleEndian
[src]impl PartialEq<LittleEndian> for LittleEndian
[src]
impl PartialEq<LittleEndian> for LittleEndian
[src]impl Copy for LittleEndian
[src]
impl Eq for LittleEndian
[src]
impl StructuralEq for LittleEndian
[src]
impl StructuralPartialEq for LittleEndian
[src]
Auto Trait Implementations
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
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]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more