pub struct ModeEntry {
pub transform_id: TransformId,
pub version: &'static str,
pub conservative_enabled: bool,
pub balanced_enabled: bool,
pub aggressive_enabled: bool,
pub experimental: bool,
pub max_ratio_conservative: f64,
pub max_ratio_balanced: f64,
pub max_ratio_aggressive: f64,
pub task_scopes: &'static [TaskScope],
pub applicable_formats: &'static [InputFormat],
}Fields§
§transform_id: TransformId§version: &'static str§conservative_enabled: bool§balanced_enabled: bool§aggressive_enabled: bool§experimental: bool§max_ratio_conservative: f64§max_ratio_balanced: f64§max_ratio_aggressive: f64§task_scopes: &'static [TaskScope]§applicable_formats: &'static [InputFormat]Implementations§
Source§impl ModeEntry
impl ModeEntry
pub fn enabled_for(&self, mode: CompressionMode) -> bool
pub fn max_ratio_for(&self, mode: CompressionMode) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModeEntry
impl RefUnwindSafe for ModeEntry
impl Send for ModeEntry
impl Sync for ModeEntry
impl Unpin for ModeEntry
impl UnsafeUnpin for ModeEntry
impl UnwindSafe for ModeEntry
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