pub struct Optimizer {
pub enabled: bool,
pub runs: usize,
pub details: Option<OptimizerDetails>,
}Expand description
Optimizer configuration. Matches the optimizer object in the standard
JSON input. enabled toggles the optimizer and runs sets the optimizer
tuning parameter (how often code is expected to run). details allows finer
control over optimizer subcomponents.
Fields§
§enabled: bool§runs: usize§details: Option<OptimizerDetails>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Optimizer
impl<'de> Deserialize<'de> for Optimizer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Optimizer
impl RefUnwindSafe for Optimizer
impl Send for Optimizer
impl Sync for Optimizer
impl Unpin for Optimizer
impl UnwindSafe for Optimizer
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