[][src]Struct goblin::container::Ctx

pub struct Ctx {
    pub container: Container,
    pub le: Endian,
}

A binary parsing context, including the container size and underlying byte endianness

Fields

container: Containerle: Endian

Methods

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 PartialEq<Ctx> for Ctx[src]

impl Copy for Ctx[src]

impl Default for Ctx[src]

impl From<Container> for Ctx[src]

impl From<Endian> for Ctx[src]

impl Clone for Ctx[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Ctx[src]

impl<'a> TryFromCtx<'a, Ctx, [u8]> for ProgramHeader[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for SectionHeader[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for CompressionHeader[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Sym[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Dyn[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Header[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Nlist[src]

type Error = Error

type Size = usize

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Section[src]

type Error = Error

type Size = usize

impl IntoCtx<Ctx, [u8]> for Header[src]

impl IntoCtx<Ctx, [u8]> for SectionHeader[src]

impl IntoCtx<Ctx, [u8]> for CompressionHeader[src]

impl IntoCtx<Ctx, [u8]> for Sym[src]

impl IntoCtx<Ctx, [u8]> for Header[src]

impl IntoCtx<Ctx, [u8]> for Nlist[src]

impl IntoCtx<Ctx, [u8]> for Section[src]

impl<'a> IntoCtx<Ctx, [u8]> for Segment<'a>[src]

impl TryIntoCtx<Ctx, [u8]> for ProgramHeader[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for SectionHeader[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for CompressionHeader[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for Sym[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for Dyn[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for Header[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for Nlist[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Ctx, [u8]> for Section[src]

type Error = Error

type Size = usize

impl<'a> TryIntoCtx<Ctx, [u8]> for Segment<'a>[src]

type Error = Error

type Size = usize

impl SizeWith<Ctx> for Header[src]

type Units = usize

impl SizeWith<Ctx> for ProgramHeader[src]

type Units = usize

impl SizeWith<Ctx> for SectionHeader[src]

type Units = usize

impl SizeWith<Ctx> for CompressionHeader[src]

type Units = usize

impl SizeWith<Ctx> for Sym[src]

type Units = usize

impl SizeWith<Ctx> for Dyn[src]

type Units = usize

impl SizeWith<Ctx> for Header[src]

type Units = usize

impl SizeWith<Ctx> for Nlist[src]

type Units = usize

impl SizeWith<Ctx> for Section[src]

type Units = usize

impl<'a> SizeWith<Ctx> for Segment<'a>[src]

type Units = usize

Auto Trait Implementations

impl Send for Ctx

impl Unpin for Ctx

impl Sync for Ctx

impl UnwindSafe for Ctx

impl RefUnwindSafe for Ctx

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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