#[repr(i64)]pub enum NSDataCompressionAlgorithm {
LZFSE = 0,
LZ4 = 1,
LZMA = 2,
Zlib = 3,
}Expand description
An algorithm that indicates how to compress or decompress data.
Variants§
LZFSE = 0
The algorithm offers faster speed and generally achieves better compression than NSDataCompressionAlgorithm::Zlib. However, it is slower than NSDataCompressionAlgorithm::LZ4 and doesn’t compress as well as NSDataCompressionAlgorithm::LZMA.
LZ4 = 1
The LZ4 compression algorithm, recommended for fast compression.
LZMA = 2
The LZMA compression algorithm, recommended for high-compression ratio.
Zlib = 3
The zlib compression algorithm, recommended for cross-platform compression.
Trait Implementations§
Source§impl Clone for NSDataCompressionAlgorithm
impl Clone for NSDataCompressionAlgorithm
Source§fn clone(&self) -> NSDataCompressionAlgorithm
fn clone(&self) -> NSDataCompressionAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NSDataCompressionAlgorithm
impl Debug for NSDataCompressionAlgorithm
impl Copy for NSDataCompressionAlgorithm
Auto Trait Implementations§
impl Freeze for NSDataCompressionAlgorithm
impl RefUnwindSafe for NSDataCompressionAlgorithm
impl Send for NSDataCompressionAlgorithm
impl Sync for NSDataCompressionAlgorithm
impl Unpin for NSDataCompressionAlgorithm
impl UnwindSafe for NSDataCompressionAlgorithm
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