rc_zip_sync

Trait ReadZipWithSize

source
pub trait ReadZipWithSize {
    type File: HasCursor;

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

A trait for reading something as a zip archive

See also ReadZip.

Required Associated Types§

source

type File: HasCursor

The type of the file to read from.

Required Methods§

source

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

Reads self as a zip archive.

Implementors§

source§

impl<F> ReadZipWithSize for F
where F: HasCursor,

source§

type File = F