[−]Enum mandelbrot::views::prelude::LittleEndian
Defines little-endian serialization.
Note that this type has no value constructor. It is used purely at the type level.
Examples
Write and read u32
numbers in little endian order:
use byteorder::{ByteOrder, LittleEndian}; let mut buf = [0; 4]; LittleEndian::write_u32(&mut buf, 1_000_000); assert_eq!(1_000_000, LittleEndian::read_u32(&buf));
Trait Implementations
impl Clone for LittleEndian
fn clone(&self) -> LittleEndian
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl StructuralEq for LittleEndian
impl PartialOrd<LittleEndian> for LittleEndian
fn partial_cmp(&self, other: &LittleEndian) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Eq for LittleEndian
fn assert_receiver_is_total_eq(&self)
impl Default for LittleEndian
fn default() -> LittleEndian
impl Debug for LittleEndian
impl StructuralPartialEq for LittleEndian
impl Hash for LittleEndian
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Copy for LittleEndian
impl ByteOrder for LittleEndian
fn read_u16(buf: &[u8]) -> u16
fn read_u32(buf: &[u8]) -> u32
fn read_u64(buf: &[u8]) -> u64
fn read_u128(buf: &[u8]) -> u128
fn read_uint(buf: &[u8], nbytes: usize) -> u64
fn read_uint128(buf: &[u8], nbytes: usize) -> u128
fn write_u16(buf: &mut [u8], n: u16)
fn write_u32(buf: &mut [u8], n: u32)
fn write_u64(buf: &mut [u8], n: u64)
fn write_u128(buf: &mut [u8], n: u128)
fn write_uint(buf: &mut [u8], n: u64, nbytes: usize)
fn write_uint128(buf: &mut [u8], n: u128, nbytes: usize)
fn read_u16_into(src: &[u8], dst: &mut [u16])
fn read_u32_into(src: &[u8], dst: &mut [u32])
fn read_u64_into(src: &[u8], dst: &mut [u64])
fn read_u128_into(src: &[u8], dst: &mut [u128])
fn write_u16_into(src: &[u16], dst: &mut [u8])
fn write_u32_into(src: &[u32], dst: &mut [u8])
fn write_u64_into(src: &[u64], dst: &mut [u8])
fn write_u128_into(src: &[u128], dst: &mut [u8])
fn from_slice_u16(numbers: &mut [u16])
fn from_slice_u32(numbers: &mut [u32])
fn from_slice_u64(numbers: &mut [u64])
fn from_slice_u128(numbers: &mut [u128])
fn from_slice_f32(numbers: &mut [f32])
fn from_slice_f64(numbers: &mut [f64])
fn read_u24(buf: &[u8]) -> u32
fn read_u48(buf: &[u8]) -> u64
fn write_u24(buf: &mut [u8], n: u32)
fn write_u48(buf: &mut [u8], n: u64)
fn read_i16(buf: &[u8]) -> i16
fn read_i24(buf: &[u8]) -> i32
fn read_i32(buf: &[u8]) -> i32
fn read_i48(buf: &[u8]) -> i64
fn read_i64(buf: &[u8]) -> i64
fn read_i128(buf: &[u8]) -> i128
fn read_int(buf: &[u8], nbytes: usize) -> i64
fn read_int128(buf: &[u8], nbytes: usize) -> i128
fn read_f32(buf: &[u8]) -> f32
fn read_f64(buf: &[u8]) -> f64
fn write_i16(buf: &mut [u8], n: i16)
fn write_i24(buf: &mut [u8], n: i32)
fn write_i32(buf: &mut [u8], n: i32)
fn write_i48(buf: &mut [u8], n: i64)
fn write_i64(buf: &mut [u8], n: i64)
fn write_i128(buf: &mut [u8], n: i128)
fn write_int(buf: &mut [u8], n: i64, nbytes: usize)
fn write_int128(buf: &mut [u8], n: i128, nbytes: usize)
fn write_f32(buf: &mut [u8], n: f32)
fn write_f64(buf: &mut [u8], n: f64)
fn read_i16_into(src: &[u8], dst: &mut [i16])
fn read_i32_into(src: &[u8], dst: &mut [i32])
fn read_i64_into(src: &[u8], dst: &mut [i64])
fn read_i128_into(src: &[u8], dst: &mut [i128])
fn read_f32_into(src: &[u8], dst: &mut [f32])
fn read_f32_into_unchecked(src: &[u8], dst: &mut [f32])
fn read_f64_into(src: &[u8], dst: &mut [f64])
fn read_f64_into_unchecked(src: &[u8], dst: &mut [f64])
fn write_i16_into(src: &[i16], dst: &mut [u8])
fn write_i32_into(src: &[i32], dst: &mut [u8])
fn write_i64_into(src: &[i64], dst: &mut [u8])
fn write_i128_into(src: &[i128], dst: &mut [u8])
fn write_f32_into(src: &[f32], dst: &mut [u8])
fn write_f64_into(src: &[f64], dst: &mut [u8])
fn from_slice_i16(src: &mut [i16])
fn from_slice_i32(src: &mut [i32])
fn from_slice_i64(src: &mut [i64])
fn from_slice_i128(src: &mut [i128])
impl PartialEq<LittleEndian> for LittleEndian
impl Ord for LittleEndian
Auto Trait Implementations
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
impl RefUnwindSafe for LittleEndian
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,