[−][src]Struct rc_zip::Archive
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
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,