Expand description
A binary parsing context, including the container size and underlying byte endianness
Fields
container: Container
le: Endian
Implementations
sourceimpl Ctx
impl Ctx
sourcepub fn is_little_endian(self) -> bool
pub fn is_little_endian(self) -> bool
Whether this binary container context is little endian or not
Trait Implementations
sourceimpl<'a> TryFromCtx<'a, Ctx, [u8]> for CompressionHeader
impl<'a> TryFromCtx<'a, Ctx, [u8]> for CompressionHeader
sourceimpl<'a> TryFromCtx<'a, Ctx, [u8]> for ProgramHeader
impl<'a> TryFromCtx<'a, Ctx, [u8]> for ProgramHeader
sourceimpl<'a> TryFromCtx<'a, Ctx, [u8]> for SectionHeader
impl<'a> TryFromCtx<'a, Ctx, [u8]> for SectionHeader
sourceimpl TryIntoCtx<Ctx, [u8]> for CompressionHeader
impl TryIntoCtx<Ctx, [u8]> for CompressionHeader
sourceimpl TryIntoCtx<Ctx, [u8]> for ProgramHeader
impl TryIntoCtx<Ctx, [u8]> for ProgramHeader
sourceimpl TryIntoCtx<Ctx, [u8]> for SectionHeader
impl TryIntoCtx<Ctx, [u8]> for SectionHeader
impl Copy for Ctx
impl StructuralPartialEq for Ctx
Auto Trait Implementations
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnwindSafe for Ctx
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more