Enum scroll::Endian[][src]

pub enum Endian {
    Little,
    Big,
}

The endianness (byte order) of a stream of bytes

Variants

Little
Big

Implementations

impl Endian[src]

pub fn network() -> Endian[src]

pub fn is_little(&self) -> bool[src]

Trait Implementations

impl Clone for Endian[src]

impl Copy for Endian[src]

impl Debug for Endian[src]

impl Default for Endian[src]

impl Eq for Endian[src]

impl From<bool> for Endian[src]

impl<'a> FromCtx<Endian, [u8]> for u8[src]

impl<'a> FromCtx<Endian, [u8]> for i8[src]

impl<'a> FromCtx<Endian, [u8]> for f32[src]

impl<'a> FromCtx<Endian, [u8]> for f64[src]

impl FromCtx<Endian, [u8]> for usize[src]

impl<'a> FromCtx<Endian, [u8]> for u16[src]

impl<'a> FromCtx<Endian, [u8]> for i16[src]

impl<'a> FromCtx<Endian, [u8]> for u32[src]

impl<'a> FromCtx<Endian, [u8]> for i32[src]

impl<'a> FromCtx<Endian, [u8]> for u64[src]

impl<'a> FromCtx<Endian, [u8]> for i64[src]

impl<'a> FromCtx<Endian, [u8]> for u128[src]

impl<'a> FromCtx<Endian, [u8]> for i128[src]

impl<'a, T> FromCtx<Endian, T> for u8 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for i8 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for u16 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for i16 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for u32 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for i32 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for u64 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for i64 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for u128 where
    T: AsRef<[u8]>, 
[src]

impl<'a, T> FromCtx<Endian, T> for i128 where
    T: AsRef<[u8]>, 
[src]

impl IntoCtx<Endian, [u8]> for u8[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a u8[src]

impl IntoCtx<Endian, [u8]> for i32[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a i32[src]

impl IntoCtx<Endian, [u8]> for u64[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a u64[src]

impl IntoCtx<Endian, [u8]> for i64[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a i64[src]

impl IntoCtx<Endian, [u8]> for u128[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a u128[src]

impl IntoCtx<Endian, [u8]> for i128[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a i128[src]

impl IntoCtx<Endian, [u8]> for i8[src]

impl IntoCtx<Endian, [u8]> for f32[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a f32[src]

impl IntoCtx<Endian, [u8]> for f64[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a f64[src]

impl IntoCtx<Endian, [u8]> for usize[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a i8[src]

impl IntoCtx<Endian, [u8]> for u16[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a u16[src]

impl IntoCtx<Endian, [u8]> for i16[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a i16[src]

impl IntoCtx<Endian, [u8]> for u32[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a u32[src]

impl PartialEq<Endian> for Endian[src]

impl SizeWith<Endian> for u8[src]

impl SizeWith<Endian> for i8[src]

impl SizeWith<Endian> for f32[src]

impl SizeWith<Endian> for f64[src]

impl SizeWith<Endian> for usize[src]

impl SizeWith<Endian> for isize[src]

impl SizeWith<Endian> for u16[src]

impl SizeWith<Endian> for i16[src]

impl SizeWith<Endian> for u32[src]

impl SizeWith<Endian> for i32[src]

impl SizeWith<Endian> for u64[src]

impl SizeWith<Endian> for i64[src]

impl SizeWith<Endian> for u128[src]

impl SizeWith<Endian> for i128[src]

impl StructuralEq for Endian[src]

impl StructuralPartialEq for Endian[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for u8 where
    u8: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for i8 where
    i8: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for f32 where
    f32: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for f64 where
    f64: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for usize where
    usize: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for u16 where
    u16: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for i16 where
    i16: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for u32 where
    u32: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for i32 where
    i32: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for u64 where
    u64: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for i64 where
    i64: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for u128 where
    u128: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryFromCtx<'a, Endian, [u8]> for i128 where
    i128: FromCtx<Endian>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for u8 where
    u8: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for i8 where
    i8: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for u16 where
    u16: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for i16 where
    i16: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for u32 where
    u32: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for i32 where
    i32: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for u64 where
    u64: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for i64 where
    i64: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for u128 where
    u128: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl<'a, T> TryFromCtx<'a, Endian, T> for i128 where
    i128: FromCtx<Endian, T>,
    T: AsRef<[u8]>, 
[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for u8 where
    u8: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a u8[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for i32 where
    i32: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a i32[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for u64 where
    u64: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a u64[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for i64 where
    i64: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a i64[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for u128 where
    u128: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a u128[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for i128 where
    i128: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a i128[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for i8 where
    i8: IntoCtx<Endian>, 
[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for f32 where
    f32: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a f32[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for f64 where
    f64: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a f64[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for usize where
    usize: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a i8[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for u16 where
    u16: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a u16[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for i16 where
    i16: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a i16[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for u32 where
    u32: IntoCtx<Endian>, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a u32[src]

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for Endian

impl Send for Endian

impl Sync for Endian

impl Unpin for Endian

impl UnwindSafe for Endian

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.