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 Encode for ZstdEncoder
impl Encode for ZstdEncoder
fn encode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> 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 !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