Struct goblin::container::Ctx [−][src]
A binary parsing context, including the container size and underlying byte endianness
Fields
container: Container
le: Endian
Implementations
impl Ctx
[src][−]
pub fn is_big(self) -> bool
[src][−]
Whether this binary container context is “big” or not
pub fn is_little_endian(self) -> bool
[src][−]
Whether this binary container context is little endian or not
pub fn new(container: Container, le: Endian) -> Self
[src][−]
Create a new binary container context
pub fn size(self) -> usize
[src][−]
Return a dubious pointer/address byte size for the container
Trait Implementations
impl Clone for Ctx
[src][+]
impl Copy for Ctx
[src]
impl Debug for Ctx
[src][+]
impl Default for Ctx
[src][+]
impl From<Container> for Ctx
[src][+]
impl From<Endian> for Ctx
[src][+]
impl IntoCtx<Ctx, [u8]> for CompressionHeader
[src][+]
impl IntoCtx<Ctx, [u8]> for Header
[src][+]
impl IntoCtx<Ctx, [u8]> for SectionHeader
[src][+]
impl IntoCtx<Ctx, [u8]> for Sym
[src][+]
impl IntoCtx<Ctx, [u8]> for Header
[src][+]
impl IntoCtx<Ctx, [u8]> for Section
[src][+]
impl<'a> IntoCtx<Ctx, [u8]> for Segment<'a>
[src][+]
impl IntoCtx<Ctx, [u8]> for Nlist
[src][+]
impl PartialEq<Ctx> for Ctx
[src][+]
impl SizeWith<Ctx> for CompressionHeader
[src][+]
impl SizeWith<Ctx> for Header
[src][+]
impl SizeWith<Ctx> for ProgramHeader
[src][+]
impl SizeWith<Ctx> for SectionHeader
[src][+]
impl SizeWith<Ctx> for Sym
[src][+]
impl SizeWith<Ctx> for Dyn
[src][+]
impl SizeWith<Ctx> for Header
[src][+]
impl SizeWith<Ctx> for Section
[src][+]
impl<'a> SizeWith<Ctx> for Segment<'a>
[src][+]
impl SizeWith<Ctx> for Nlist
[src][+]
impl StructuralPartialEq for Ctx
[src]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for CompressionHeader
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for ProgramHeader
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for SectionHeader
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Sym
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Dyn
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Header
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Section
[src][+]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Nlist
[src][+]
impl TryIntoCtx<Ctx, [u8]> for CompressionHeader
[src][+]
impl TryIntoCtx<Ctx, [u8]> for ProgramHeader
[src][+]
impl TryIntoCtx<Ctx, [u8]> for SectionHeader
[src][+]
impl TryIntoCtx<Ctx, [u8]> for Sym
[src][+]
impl TryIntoCtx<Ctx, [u8]> for Dyn
[src][+]
impl TryIntoCtx<Ctx, [u8]> for Header
[src][+]
impl TryIntoCtx<Ctx, [u8]> for Section
[src][+]
impl<'a> TryIntoCtx<Ctx, [u8]> for Segment<'a>
[src][+]
impl TryIntoCtx<Ctx, [u8]> for Nlist
[src][+]
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
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,