pub struct DDict<'a>(/* private fields */);
Expand description
A digested decompression dictionary.
Implementations§
source§impl<'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§
impl<'a> Send for DDict<'a>
impl<'a> Sync for DDict<'a>
Auto Trait Implementations§
impl<'a> Freeze for DDict<'a>
impl<'a> RefUnwindSafe for DDict<'a>
impl<'a> Unpin for DDict<'a>
impl<'a> UnwindSafe for DDict<'a>
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