pub enum Algorithm {
Lz4,
Zlib,
Lzma,
Lz4Raw,
Brotli,
Lzfse,
Lzbitmap,
}Expand description
Wraps compression_algorithm values from compression.h.
Variants§
Lz4
Wraps COMPRESSION_LZ4.
Zlib
Wraps COMPRESSION_ZLIB.
Lzma
Wraps COMPRESSION_LZMA.
Lz4Raw
Wraps COMPRESSION_LZ4_RAW.
Brotli
Wraps COMPRESSION_BROTLI.
Lzfse
Wraps COMPRESSION_LZFSE.
Lzbitmap
Wraps COMPRESSION_LZBITMAP.
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub const BUFFER_ALL: [Self; 7]
pub const BUFFER_ALL: [Self; 7]
Wraps the buffer-capable compression_algorithm set.
Sourcepub const fn supports_streams(self) -> bool
pub const fn supports_streams(self) -> bool
Wraps stream support for compression_stream_* entry points.
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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