pub struct Dictionary { /* private fields */ }Expand description
A parsed dictionary, usable by both the decoder and (via EncoderDictionary) the encoder.
Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn new(bytes: &[u8], format: DictionaryFormat) -> Result<Dictionary>
pub fn new(bytes: &[u8], format: DictionaryFormat) -> Result<Dictionary>
Parses bytes in the given format.
Sourcepub fn has_entropy_tables(&self) -> bool
pub fn has_entropy_tables(&self) -> bool
True when the dictionary carries entropy tables.
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnsafeUnpin for Dictionary
impl UnwindSafe for Dictionary
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