pub struct CompressionSettings {
pub level: CompressionLevel,
pub intent: CompressionIntent,
}Expand description
Generic compression settings metadata.
Fields§
§level: CompressionLevelCompression level label.
intent: CompressionIntentCompression intent label.
Implementations§
Source§impl CompressionSettings
impl CompressionSettings
Sourcepub const fn new(level: CompressionLevel, intent: CompressionIntent) -> Self
pub const fn new(level: CompressionLevel, intent: CompressionIntent) -> Self
Creates compression settings metadata.
Trait Implementations§
Source§impl Clone for CompressionSettings
impl Clone for CompressionSettings
Source§fn clone(&self) -> CompressionSettings
fn clone(&self) -> CompressionSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompressionSettings
impl Debug for CompressionSettings
Source§impl Default for CompressionSettings
impl Default for CompressionSettings
Source§fn default() -> CompressionSettings
fn default() -> CompressionSettings
Returns the “default value” for a type. Read more
Source§impl Hash for CompressionSettings
impl Hash for CompressionSettings
Source§impl Ord for CompressionSettings
impl Ord for CompressionSettings
Source§fn cmp(&self, other: &CompressionSettings) -> Ordering
fn cmp(&self, other: &CompressionSettings) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompressionSettings
impl PartialEq for CompressionSettings
Source§fn eq(&self, other: &CompressionSettings) -> bool
fn eq(&self, other: &CompressionSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CompressionSettings
impl PartialOrd for CompressionSettings
impl Copy for CompressionSettings
impl Eq for CompressionSettings
impl StructuralPartialEq for CompressionSettings
Auto Trait Implementations§
impl Freeze for CompressionSettings
impl RefUnwindSafe for CompressionSettings
impl Send for CompressionSettings
impl Sync for CompressionSettings
impl Unpin for CompressionSettings
impl UnsafeUnpin for CompressionSettings
impl UnwindSafe for CompressionSettings
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