pub struct CompressionInfo {
pub name: String,
pub description: String,
pub typical_compression_ratio: f64,
pub compression_speed: u8,
pub decompression_speed: u8,
pub file_extension: String,
}
Expand description
Information about a compression algorithm
Fields§
§name: String
Name of the compression algorithm
description: String
Brief description of the algorithm
typical_compression_ratio: f64
Typical compression ratio for scientific data (higher is better)
compression_speed: u8
Relative compression speed (1-10, higher is faster)
decompression_speed: u8
Relative decompression speed (1-10, higher is faster)
file_extension: String
File extension associated with this compression
Auto Trait Implementations§
impl Freeze for CompressionInfo
impl RefUnwindSafe for CompressionInfo
impl Send for CompressionInfo
impl Sync for CompressionInfo
impl Unpin for CompressionInfo
impl UnwindSafe for CompressionInfo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more