Enum scroll::Endian [−][src]
The endianness (byte order) of a stream of bytes
Variants
Implementations
impl Endian[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]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for i8 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for u16 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for i16 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for u32 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for i32 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for u64 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for i64 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for u128 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
impl<'a, T> FromCtx<Endian, T> for i128 where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
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]
u8: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for i8 where
    i8: FromCtx<Endian>, [src]
i8: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for f32 where
    f32: FromCtx<Endian>, [src]
f32: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for f64 where
    f64: FromCtx<Endian>, [src]
f64: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for usize where
    usize: FromCtx<Endian>, [src]
usize: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for u16 where
    u16: FromCtx<Endian>, [src]
u16: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for i16 where
    i16: FromCtx<Endian>, [src]
i16: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for u32 where
    u32: FromCtx<Endian>, [src]
u32: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for i32 where
    i32: FromCtx<Endian>, [src]
i32: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for u64 where
    u64: FromCtx<Endian>, [src]
u64: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for i64 where
    i64: FromCtx<Endian>, [src]
i64: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for u128 where
    u128: FromCtx<Endian>, [src]
u128: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for i128 where
    i128: FromCtx<Endian>, [src]
i128: FromCtx<Endian>,
type Error = Error
fn try_from_ctx(src: &'a [u8], le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for u8 where
    u8: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
u8: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for i8 where
    i8: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
i8: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for u16 where
    u16: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
u16: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for i16 where
    i16: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
i16: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for u32 where
    u32: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
u32: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for i32 where
    i32: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
i32: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for u64 where
    u64: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
u64: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for i64 where
    i64: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
i64: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for u128 where
    u128: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
u128: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl<'a, T> TryFromCtx<'a, Endian, T> for i128 where
    i128: FromCtx<Endian, T>,
    T: AsRef<[u8]>, [src]
i128: FromCtx<Endian, T>,
T: AsRef<[u8]>,
type Error = Error
fn try_from_ctx(src: &'a T, le: Endian) -> Result<(Self, usize), Self::Error>[src]
impl TryIntoCtx<Endian, [u8]> for u8 where
    u8: IntoCtx<Endian>, [src]
u8: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u8[src]
impl TryIntoCtx<Endian, [u8]> for i32 where
    i32: IntoCtx<Endian>, [src]
i32: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i32[src]
impl TryIntoCtx<Endian, [u8]> for u64 where
    u64: IntoCtx<Endian>, [src]
u64: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u64[src]
impl TryIntoCtx<Endian, [u8]> for i64 where
    i64: IntoCtx<Endian>, [src]
i64: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i64[src]
impl TryIntoCtx<Endian, [u8]> for u128 where
    u128: IntoCtx<Endian>, [src]
u128: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u128[src]
impl TryIntoCtx<Endian, [u8]> for i128 where
    i128: IntoCtx<Endian>, [src]
i128: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i128[src]
impl TryIntoCtx<Endian, [u8]> for i8 where
    i8: IntoCtx<Endian>, [src]
i8: IntoCtx<Endian>,
impl TryIntoCtx<Endian, [u8]> for f32 where
    f32: IntoCtx<Endian>, [src]
f32: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a f32[src]
impl TryIntoCtx<Endian, [u8]> for f64 where
    f64: IntoCtx<Endian>, [src]
f64: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a f64[src]
impl TryIntoCtx<Endian, [u8]> for usize where
    usize: IntoCtx<Endian>, [src]
usize: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i8[src]
impl TryIntoCtx<Endian, [u8]> for u16 where
    u16: IntoCtx<Endian>, [src]
u16: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u16[src]
impl TryIntoCtx<Endian, [u8]> for i16 where
    i16: IntoCtx<Endian>, [src]
i16: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i16[src]
impl TryIntoCtx<Endian, [u8]> for u32 where
    u32: IntoCtx<Endian>, [src]
u32: IntoCtx<Endian>,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u32[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,