Skip to main content

ArchiveRead

Trait ArchiveRead 

Source
pub trait ArchiveRead {
    // Required methods
    fn next_entry(&mut self) -> Result<Option<Entry<'_>>>;
    fn by_index(&mut self, index: usize) -> Result<Entry<'_>>;
    fn fidelity(&self) -> &FidelityReport;
}

Required Methods§

Source

fn next_entry(&mut self) -> Result<Option<Entry<'_>>>

Forward iteration. Available for every container on every input — this is the streaming path, and the reason Entry borrows.

Source

fn by_index(&mut self, index: usize) -> Result<Entry<'_>>

Random access. Err(NotSeekable) when the ladder could not supply seek.

Source

fn fidelity(&self) -> &FidelityReport

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§