pub struct CCtx(/* private fields */);Implementations§
Source§impl CCtx
impl CCtx
pub fn new() -> Self
pub fn set_parameter(&mut self, p: ZL_CParam, v: i32) -> Result<(), Error>
Sourcepub fn ref_compressor(&mut self, compressor: &Compressor) -> Result<(), Error>
pub fn ref_compressor(&mut self, compressor: &Compressor) -> Result<(), Error>
Reference a Compressor for graph-based typed compression.
This enables TypedRef compression by associating the CCtx with a Compressor that has registered compression graphs.
IMPORTANT: The Compressor must remain valid for the duration of its usage. The Compressor must be validated before being referenced.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CCtx
impl RefUnwindSafe for CCtx
impl !Send for CCtx
impl !Sync for CCtx
impl Unpin for CCtx
impl UnwindSafe for CCtx
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