pub struct GraphOptimizerBuilder { /* private fields */ }Expand description
Builder for graph optimization configuration.
Implementations§
Source§impl GraphOptimizerBuilder
impl GraphOptimizerBuilder
Sourcepub fn with_constant_folding(self) -> Self
pub fn with_constant_folding(self) -> Self
Enable constant folding.
Sourcepub fn with_subgraph_caching(self) -> Self
pub fn with_subgraph_caching(self) -> Self
Enable subgraph caching.
Sourcepub fn with_algebraic_simplification(self) -> Self
pub fn with_algebraic_simplification(self) -> Self
Enable algebraic simplification.
Sourcepub fn with_dead_code_elimination(self) -> Self
pub fn with_dead_code_elimination(self) -> Self
Enable dead code elimination.
Sourcepub fn with_operation_reordering(self) -> Self
pub fn with_operation_reordering(self) -> Self
Enable operation reordering.
Sourcepub fn build(self) -> GraphOptimizer
pub fn build(self) -> GraphOptimizer
Build the optimizer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphOptimizerBuilder
impl RefUnwindSafe for GraphOptimizerBuilder
impl Send for GraphOptimizerBuilder
impl Sync for GraphOptimizerBuilder
impl Unpin for GraphOptimizerBuilder
impl UnwindSafe for GraphOptimizerBuilder
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