pub struct Xz2Encoder { /* private fields */ }
Available on crate feature
lzma
only.Expand description
Xz2 encoding stream
Implementations§
Source§impl Xz2Encoder
impl Xz2Encoder
pub fn new(format: Xz2FileFormat, level: Level) -> Self
pub fn xz_parallel(level: Level, threads: NonZeroU32) -> Self
Available on crate feature
xz-parallel
only.Trait Implementations§
Source§impl Debug for Xz2Encoder
impl Debug for Xz2Encoder
Source§impl Encode for Xz2Encoder
impl Encode for Xz2Encoder
fn encode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<()>
Source§impl From<Xz2Encoder> for LzmaEncoder
impl From<Xz2Encoder> for LzmaEncoder
Source§fn from(inner: Xz2Encoder) -> Self
fn from(inner: Xz2Encoder) -> Self
Converts to this type from the input type.
Source§impl TryFrom<LzmaEncoderParams> for Xz2Encoder
impl TryFrom<LzmaEncoderParams> for Xz2Encoder
Auto Trait Implementations§
impl Freeze for Xz2Encoder
impl RefUnwindSafe for Xz2Encoder
impl Send for Xz2Encoder
impl Sync for Xz2Encoder
impl Unpin for Xz2Encoder
impl UnwindSafe for Xz2Encoder
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