pub trait LayerReader<'a, R: Read + Seek>: Read + Seek {
// Required methods
fn into_inner(self) -> Option<Box<dyn LayerReader<'a, R> + 'a>>;
fn into_raw(self: Box<Self>) -> R;
fn initialize(&mut self) -> Result<(), Error>;
}Expand description
Trait to be implemented by layer readers
Required Methods§
Sourcefn into_inner(self) -> Option<Box<dyn LayerReader<'a, R> + 'a>>
fn into_inner(self) -> Option<Box<dyn LayerReader<'a, R> + 'a>>
Unwraps the inner reader
Sourcefn initialize(&mut self) -> Result<(), Error>
fn initialize(&mut self) -> Result<(), Error>
Initialize the current layer, like reading the footer.
This method is responsible of recursively calling (postfix) initialize
on inner layer if any