pub struct DictReaderDz<B: Read + Seek> {
dzdict: B,
uchunk_length: usize,
end_compressed_data: usize,
chunk_offsets: Vec<usize>,
ufile_length: u64,
}Expand description
Gzip Dict reader
This reader can read compressed .dict files with the file name suffix .dz.
This format is documented in RFC 1952 and in man dictzip. An example implementation can be
found in the dict daemon (dictd) in data.c.
Fields§
§dzdict: BCompressed DZ dictionary.
uchunk_length: usizeLength of an uncompressed chunk.
end_compressed_data: usizeEnd of compressed data.
chunk_offsets: Vec<usize>Offsets in file where a new compressed chunk starts.
ufile_length: u64Total size of uncompressed file.
Implementations§
Trait Implementations§
Source§impl<B: Read + Seek> DictReader for DictReaderDz<B>
impl<B: Read + Seek> DictReader for DictReaderDz<B>
Auto Trait Implementations§
impl<B> Freeze for DictReaderDz<B>where
B: Freeze,
impl<B> RefUnwindSafe for DictReaderDz<B>where
B: RefUnwindSafe,
impl<B> Send for DictReaderDz<B>where
B: Send,
impl<B> Sync for DictReaderDz<B>where
B: Sync,
impl<B> Unpin for DictReaderDz<B>where
B: Unpin,
impl<B> UnwindSafe for DictReaderDz<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.