[][src]Struct goblin::archive::Archive

pub struct Archive<'a> { /* fields omitted */ }

An in-memory representation of a parsed Unix Archive

Implementations

impl<'a> Archive<'a>[src]

pub fn parse(buffer: &'a [u8]) -> Result<Archive<'a>>[src]

pub fn get(&self, member: &str) -> Option<&Member>[src]

Get the member named member in this archive, if any

pub fn extract<'b>(&self, member: &str, buffer: &'b [u8]) -> Result<&'b [u8]>[src]

Returns a slice of the raw bytes for the given member in the scrollable buffer

pub fn summarize(&self) -> Vec<(&str, &Member, Vec<&'a str>)>[src]

Gets a summary of this archive, returning a list of membername, the member, and the list of symbols the member contains

pub fn members(&self) -> Vec<&'a str>[src]

Get the list of member names in this archive

pub fn member_of_symbol(&self, symbol: &str) -> Option<&'a str>[src]

Returns the member's name which contains the given symbol, if it is in the archive

Trait Implementations

impl<'a> Debug for Archive<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Archive<'a>

impl<'a> Send for Archive<'a>

impl<'a> Sync for Archive<'a>

impl<'a> Unpin for Archive<'a>

impl<'a> UnwindSafe for Archive<'a>

Blanket Implementations

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

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

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

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.