pub struct Config {
pub preset: Preset,
pub precision: Option<u32>,
pub pass_overrides: HashMap<String, bool>,
}Expand description
Configuration for the optimization pipeline.
Fields§
§preset: PresetWhich preset to use as the base pass set.
precision: Option<u32>Numeric precision for rounding passes. If None, uses the preset default
(default: 3).
pass_overrides: HashMap<String, bool>Per-pass overrides. true enables a pass not in the preset, false disables one that is.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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