[−][src]Enum scroll::Endian
The endianness (byte order) of a stream of bytes
Variants
Little
Big
Methods
impl Endian
[src]
Trait Implementations
impl<'a> FromCtx<Endian, [u8]> for u8
[src]
impl<'a, T> FromCtx<Endian, T> for u8 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for i8
[src]
impl<'a, T> FromCtx<Endian, T> for i8 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for u16
[src]
impl<'a, T> FromCtx<Endian, T> for u16 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for i16
[src]
impl<'a, T> FromCtx<Endian, T> for i16 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for u32
[src]
impl<'a, T> FromCtx<Endian, T> for u32 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for i32
[src]
impl<'a, T> FromCtx<Endian, T> for i32 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for u64
[src]
impl<'a, T> FromCtx<Endian, T> for u64 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for i64
[src]
impl<'a, T> FromCtx<Endian, T> for i64 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for u128
[src]
impl<'a, T> FromCtx<Endian, T> for u128 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'a> FromCtx<Endian, [u8]> for i128
[src]
impl<'a, T> FromCtx<Endian, T> for i128 where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
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> TryFromCtx<'a, Endian, [u8]> for u8 where
u8: FromCtx<Endian>,
[src]
u8: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for i8 where
i8: FromCtx<Endian>,
[src]
i8: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for u16 where
u16: FromCtx<Endian>,
[src]
u16: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for i16 where
i16: FromCtx<Endian>,
[src]
i16: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for u32 where
u32: FromCtx<Endian>,
[src]
u32: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for i32 where
i32: FromCtx<Endian>,
[src]
i32: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for u64 where
u64: FromCtx<Endian>,
[src]
u64: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for i64 where
i64: FromCtx<Endian>,
[src]
i64: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for u128 where
u128: FromCtx<Endian>,
[src]
u128: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for i128 where
i128: FromCtx<Endian>,
[src]
i128: FromCtx<Endian>,
type Error = Error<usize>
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
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
type Size = usize
fn try_from_ctx(
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a T,
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for f32 where
f32: FromCtx<Endian>,
[src]
f32: FromCtx<Endian>,
type Error = Error
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for f64 where
f64: FromCtx<Endian>,
[src]
f64: FromCtx<Endian>,
type Error = Error
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> TryFromCtx<'a, Endian, [u8]> for usize where
usize: FromCtx<Endian>,
[src]
usize: FromCtx<Endian>,
type Error = Error
type Size = usize
fn try_from_ctx(
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
le: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl IntoCtx<Endian, [u8]> for u8
[src]
impl<'a> IntoCtx<Endian, [u8]> for &'a u8
[src]
impl IntoCtx<Endian, [u8]> for i8
[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 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 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 TryIntoCtx<Endian, [u8]> for u8 where
u8: IntoCtx<Endian>,
[src]
u8: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u8
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for i8 where
i8: IntoCtx<Endian>,
[src]
i8: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i8
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for u16 where
u16: IntoCtx<Endian>,
[src]
u16: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u16
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for i16 where
i16: IntoCtx<Endian>,
[src]
i16: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i16
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for u32 where
u32: IntoCtx<Endian>,
[src]
u32: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u32
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for i32 where
i32: IntoCtx<Endian>,
[src]
i32: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i32
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for u64 where
u64: IntoCtx<Endian>,
[src]
u64: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u64
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for i64 where
i64: IntoCtx<Endian>,
[src]
i64: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i64
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for u128 where
u128: IntoCtx<Endian>,
[src]
u128: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a u128
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for i128 where
i128: IntoCtx<Endian>,
[src]
i128: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a i128
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for f32 where
f32: IntoCtx<Endian>,
[src]
f32: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a f32
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for f64 where
f64: IntoCtx<Endian>,
[src]
f64: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a f64
[src]
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl TryIntoCtx<Endian, [u8]> for usize where
usize: IntoCtx<Endian>,
[src]
usize: IntoCtx<Endian>,
type Error = Error
type Size = usize
fn try_into_ctx(self, dst: &mut [u8], le: Endian) -> Result<Self::Size>
[src]
impl SizeWith<Endian> for u8
[src]
impl SizeWith<Endian> for i8
[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 SizeWith<Endian> for f32
[src]
impl SizeWith<Endian> for f64
[src]
impl SizeWith<Endian> for usize
[src]
impl SizeWith<Endian> for isize
[src]
impl Eq for Endian
[src]
impl Default for Endian
[src]
impl Clone for Endian
[src]
impl PartialEq<Endian> for Endian
[src]
impl From<bool> for Endian
[src]
impl Copy for Endian
[src]
impl Debug for Endian
[src]
Auto Trait Implementations
impl Sync for Endian
impl Send for Endian
impl Unpin for Endian
impl UnwindSafe for Endian
impl RefUnwindSafe for Endian
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,