[−][src]Struct goblin::archive::Archive
An in-memory representation of a parsed Unix Archive
Methods
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
Auto Trait Implementations
impl<'a> Sync for Archive<'a>
impl<'a> Send for Archive<'a>
impl<'a> Unpin for Archive<'a>
impl<'a> UnwindSafe for Archive<'a>
impl<'a> RefUnwindSafe for Archive<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,