rc_zip_sync

Trait ReadZip

source
pub trait ReadZip {
    type File: HasCursor;

    // Required method
    fn read_zip(&self) -> Result<ArchiveHandle<'_, Self::File>, Error>;
}
Expand description

A trait for reading something as a zip archive when we can tell size from self.

See also ReadZipWithSize.

Required Associated Types§

source

type File: HasCursor

The type of the file to read from.

Required Methods§

source

fn read_zip(&self) -> Result<ArchiveHandle<'_, Self::File>, Error>

Reads self as a zip archive.

Implementations on Foreign Types§

source§

impl ReadZip for &[u8]

source§

type File = &[u8]

source§

fn read_zip(&self) -> Result<ArchiveHandle<'_, Self::File>, Error>

source§

impl ReadZip for Vec<u8>

source§

impl ReadZip for File

Implementors§