Struct object::endian::BigEndian [−][src]
pub struct BigEndian;
Expand description
Compile-time big endian byte order.
Trait Implementations
impl Endian for BigEndian
[src]
impl Endian for BigEndian
[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 Copy for BigEndian
[src]
impl Eq for BigEndian
[src]
impl StructuralEq for BigEndian
[src]
impl StructuralPartialEq for BigEndian
[src]
Auto Trait Implementations
impl RefUnwindSafe for BigEndian
impl Send for BigEndian
impl Sync for BigEndian
impl Unpin for BigEndian
impl UnwindSafe for BigEndian
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