pub struct Optimizer { /* private fields */ }Implementations§
Source§impl Optimizer
impl Optimizer
pub const fn builder() -> OptimizerBuilder
pub const fn none() -> Self
pub const fn is_empty(&self) -> bool
pub fn run<'a, O: Operand + Clone + 'static>( &'a self, stats: &'a Stats<'a>, root: &O, ) -> O
pub fn run_reported<'a, O: Operand + Clone + 'static>( &'a self, stats: &'a Stats<'a>, root: &O, ) -> (O, OptimizationReport)
Auto Trait Implementations§
impl !RefUnwindSafe for Optimizer
impl !UnwindSafe for Optimizer
impl Freeze for Optimizer
impl Send for Optimizer
impl Sync for Optimizer
impl Unpin for Optimizer
impl UnsafeUnpin 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
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