pub struct EliminateAndTrue;Expand description
Identity for conjunction: And(True, x) or And(x, True) → x.
“True” is represented as TLExpr::Constant(c) where c ≈ 1.0.
Trait Implementations§
Source§impl Clone for EliminateAndTrue
impl Clone for EliminateAndTrue
Source§fn clone(&self) -> EliminateAndTrue
fn clone(&self) -> EliminateAndTrue
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 EliminateAndTrue
impl Debug for EliminateAndTrue
Source§impl Default for EliminateAndTrue
impl Default for EliminateAndTrue
Source§fn default() -> EliminateAndTrue
fn default() -> EliminateAndTrue
Returns the “default value” for a type. Read more
Source§impl RewriteRule for EliminateAndTrue
impl RewriteRule for EliminateAndTrue
Source§fn is_recursive(&self) -> bool
fn is_recursive(&self) -> bool
Whether the engine should recurse into children of
expr before
trying this rule. Defaults to true (standard bottom-up traversal).Auto Trait Implementations§
impl Freeze for EliminateAndTrue
impl RefUnwindSafe for EliminateAndTrue
impl Send for EliminateAndTrue
impl Sync for EliminateAndTrue
impl Unpin for EliminateAndTrue
impl UnsafeUnpin for EliminateAndTrue
impl UnwindSafe for EliminateAndTrue
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