pub struct EncoderDictionary { /* private fields */ }Expand description
A dictionary prepared for one compression level. Share it across frames and threads.
Implementations§
Source§impl EncoderDictionary
impl EncoderDictionary
Sourcepub fn new(dict: &Dictionary, level: i32) -> Result<EncoderDictionary>
pub fn new(dict: &Dictionary, level: i32) -> Result<EncoderDictionary>
Prepares dict for compressing at level (the level must match the
compressor’s; the reference library binds a CDict to a level the same way).
Auto Trait Implementations§
impl Freeze for EncoderDictionary
impl RefUnwindSafe for EncoderDictionary
impl Send for EncoderDictionary
impl Sync for EncoderDictionary
impl Unpin for EncoderDictionary
impl UnsafeUnpin for EncoderDictionary
impl UnwindSafe for EncoderDictionary
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