pub enum DictionaryFormat {
Zstd,
Raw {
id: u32,
},
Detect,
}Expand description
How to interpret dictionary bytes. There is deliberately no auto-detection default.
Variants§
Zstd
Must start with the zstd dictionary magic; entropy tables and repeat offsets are loaded.
Raw
The bytes are history only; frames reference it with dictionary ID 0 unless id is given.
Detect
Zstd format if the magic is present, else raw with ID 0 (the reference library’s behaviour).
Trait Implementations§
Source§impl Clone for DictionaryFormat
impl Clone for DictionaryFormat
impl Copy for DictionaryFormat
Source§impl Debug for DictionaryFormat
impl Debug for DictionaryFormat
impl Eq for DictionaryFormat
Source§impl PartialEq for DictionaryFormat
impl PartialEq for DictionaryFormat
impl StructuralPartialEq for DictionaryFormat
Auto Trait Implementations§
impl Freeze for DictionaryFormat
impl RefUnwindSafe for DictionaryFormat
impl Send for DictionaryFormat
impl Sync for DictionaryFormat
impl Unpin for DictionaryFormat
impl UnsafeUnpin for DictionaryFormat
impl UnwindSafe for DictionaryFormat
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