pub struct ZstdEncoder { /* private fields */ }Available on crate feature
zstd only.Implementations§
Source§impl ZstdEncoder
impl ZstdEncoder
pub fn new(level: i32) -> Self
pub fn new_with_params(level: i32, params: &[CParameter]) -> Self
pub fn new_with_dict(level: i32, dictionary: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl Debug for ZstdEncoder
impl Debug for ZstdEncoder
Source§impl EncodeV2 for ZstdEncoder
impl EncodeV2 for ZstdEncoder
fn encode( &mut self, input: &mut PartialBuffer<&[u8]>, output: &mut WriteBuffer<'_>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for ZstdEncoder
impl RefUnwindSafe for ZstdEncoder
impl Send for ZstdEncoder
impl Sync for ZstdEncoder
impl Unpin for ZstdEncoder
impl UnsafeUnpin for ZstdEncoder
impl !UnwindSafe for ZstdEncoder
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