Struct ZipArchiveMetadata

pub struct ZipArchiveMetadata { /* private fields */ }

Immutable metadata about a ZipArchive.

Implementations

impl ZipArchiveMetadata

fn len(&self) -> usize

Number of files contained in the central directory.

fn is_empty(&self) -> bool

Whether the central directory contains no files.

fn entry(&self, index: usize) -> ZipResult<ZipFileEntry<'_>>

Get a central directory entry by index

fn has_duplicate_names(&self) -> bool

Whether the central directory contains duplicate file names.

Trait Implementations

impl Debug for ZipArchiveMetadata

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for ZipArchiveMetadata

impl RefUnwindSafe for ZipArchiveMetadata

impl Send for ZipArchiveMetadata

impl Sync for ZipArchiveMetadata

impl Unpin for ZipArchiveMetadata

impl UnsafeUnpin for ZipArchiveMetadata

impl UnwindSafe for ZipArchiveMetadata

Blanket Implementations

impl<T> Any for ZipArchiveMetadata where T: 'static + ?Sized,

impl<T> Borrow<T> for ZipArchiveMetadata where T: ?Sized,

impl<T> BorrowMut<T> for ZipArchiveMetadata where T: ?Sized,

impl<T> From<T> for ZipArchiveMetadata

impl<T> Same for ZipArchiveMetadata

impl<T, U> Into<U> for ZipArchiveMetadata where U: From<T>,

impl<T, U> TryFrom<U> for ZipArchiveMetadata where U: Into<T>,

impl<T, U> TryInto<U> for ZipArchiveMetadata where U: TryFrom<T>,