pub struct AlgSimplConfig {
pub max_passes: usize,
pub fold_constants: bool,
pub expand: bool,
pub factor: bool,
}Expand description
Configuration for the algebraic simplification pass.
Fields§
§max_passes: usizeMaximum number of simplification passes to perform.
fold_constants: boolWhether to evaluate constant sub-expressions eagerly.
expand: boolWhether to expand products (e.g. (a+b)*c = a*c + b*c).
factor: boolWhether to factorise expressions (e.g. a*c + b*c = (a+b)*c).
Trait Implementations§
Source§impl Clone for AlgSimplConfig
impl Clone for AlgSimplConfig
Source§fn clone(&self) -> AlgSimplConfig
fn clone(&self) -> AlgSimplConfig
Returns a duplicate 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 AlgSimplConfig
impl Debug for AlgSimplConfig
Auto Trait Implementations§
impl Freeze for AlgSimplConfig
impl RefUnwindSafe for AlgSimplConfig
impl Send for AlgSimplConfig
impl Sync for AlgSimplConfig
impl Unpin for AlgSimplConfig
impl UnsafeUnpin for AlgSimplConfig
impl UnwindSafe for AlgSimplConfig
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