pub struct OptimizationConfig {
pub moveable_functions: Vec<String>,
}
Expand description
A configuration struct that controls the behavior of the optimization passes.
Fields§
§moveable_functions: Vec<String>
A list of functions that can be moved during the reorder_statements optimization.
Implementations§
source§impl OptimizationConfig
impl OptimizationConfig
sourcepub fn no_movable_functions() -> Self
pub fn no_movable_functions() -> Self
A configuration where the list of movable functions is empty. Used to make tests easier to write.
Trait Implementations§
source§impl Clone for OptimizationConfig
impl Clone for OptimizationConfig
source§fn clone(&self) -> OptimizationConfig
fn clone(&self) -> OptimizationConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptimizationConfig
impl Debug for OptimizationConfig
source§impl PartialEq for OptimizationConfig
impl PartialEq for OptimizationConfig
source§fn eq(&self, other: &OptimizationConfig) -> bool
fn eq(&self, other: &OptimizationConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OptimizationConfig
impl StructuralEq for OptimizationConfig
impl StructuralPartialEq for OptimizationConfig
Auto Trait Implementations§
impl RefUnwindSafe for OptimizationConfig
impl Send for OptimizationConfig
impl Sync for OptimizationConfig
impl Unpin for OptimizationConfig
impl UnwindSafe for OptimizationConfig
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.