[][src]Struct rc_zip::Archive

pub struct Archive { /* fields omitted */ }

An Archive contains general information about a zip files, along with a list of entries.

It is obtained via an ArchiveReader, or via a higher-level API like the ReadZip trait.

Methods

impl Archive[src]

pub fn entries(&self) -> &[StoredEntry][src]

Return a list of all files in this zip, read from the central directory.

pub fn by_name<N: AsRef<str>>(&self, name: N) -> Option<&StoredEntry>[src]

Attempts to look up an entry by name. This is usually a bad idea, as names aren't necessarily normalized in zip archives.

pub fn encoding(&self) -> Encoding[src]

Returns the detected character encoding for text fields (names, comments) inside this zip archive.

pub fn comment(&self) -> Option<&String>[src]

Returns the comment for this archive, if any. When reading a zip file with an empty comment field, this will return None.

Trait Implementations

impl Debug for Archive[src]

Auto Trait Implementations

impl RefUnwindSafe for Archive

impl Send for Archive

impl Sync for Archive

impl Unpin for Archive

impl UnwindSafe for Archive

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 = !

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.