pub trait Entry: Sized {
// Required methods
fn len(&self) -> u64;
fn pos(&self) -> u64;
// Provided method
fn reader<'a, Source: Read + Seek>(
&mut self,
source: &'a mut Source,
) -> Result<Take<&'a mut Source>, Error> { ... }
}Expand description
An entry to another section of the data.
Required Methods§
Provided Methods§
Sourcefn reader<'a, Source: Read + Seek>(
&mut self,
source: &'a mut Source,
) -> Result<Take<&'a mut Source>, Error>
fn reader<'a, Source: Read + Seek>( &mut self, source: &'a mut Source, ) -> Result<Take<&'a mut Source>, Error>
Creates a reader for the entry for further decoding.
Using a std::io::BufReader source is recommended. Especially when reading multiple and/or small entries.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.