Trait rc_zip_sync::ReadZip

source ·
pub trait ReadZip {
    type File: HasCursor;

    // Required method
    fn read_zip(&self) -> Result<SyncArchive<'_, 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<SyncArchive<'_, Self::File>, Error>

Reads self as a zip archive.

Implementations on Foreign Types§

source§

impl ReadZip for &[u8]

§

type File = &[u8]

source§

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

source§

impl ReadZip for Vec<u8>

§

type File = Vec<u8>

source§

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

source§

impl ReadZip for File

§

type File = File

source§

fn read_zip(&self) -> Result<SyncArchive<'_, Self>, Error>

Implementors§