pub struct DDict<'a>(_, _);
Expand description
A digested decompression dictionary.
Implementations
sourceimpl<'a> DDict<'a>
impl<'a> DDict<'a>
pub fn sizeof(&self) -> usize
sourcepub fn create_by_reference(dict_buffer: &'a [u8]) -> Self
Available on crate feature experimental
only.
pub fn create_by_reference(dict_buffer: &'a [u8]) -> Self
experimental
only.Wraps the ZSTD_createDDict_byReference()
function.
The dictionary will keep referencing dict_buffer
.
sourcepub fn get_dict_id(&self) -> Option<NonZeroU32>
pub fn get_dict_id(&self) -> Option<NonZeroU32>
Returns the dictionary ID for this dict.
Returns None
if this dictionary is empty or invalid.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more