pub enum SimplificationPattern {
AddZero,
SubZero,
MulOne,
DivOne,
MulZero,
SubSelf,
DivSelf,
LogExp,
ExpLog,
SqrtSquare,
PowOne,
PowZero,
}Expand description
Types of simplification patterns
Variants§
AddZero
x + 0 → x
SubZero
x - 0 → x
MulOne
x * 1 → x
DivOne
x / 1 → x
MulZero
x * 0 → 0
SubSelf
x - x → 0
DivSelf
x / x → 1
LogExp
log(exp(x)) → x
ExpLog
exp(log(x)) → x
SqrtSquare
sqrt(x^2) → abs(x)
PowOne
pow(x, 1) → x
PowZero
pow(x, 0) → 1
Trait Implementations§
Source§impl Clone for SimplificationPattern
impl Clone for SimplificationPattern
Source§fn clone(&self) -> SimplificationPattern
fn clone(&self) -> SimplificationPattern
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 SimplificationPattern
impl Debug for SimplificationPattern
Source§impl PartialEq for SimplificationPattern
impl PartialEq for SimplificationPattern
impl Copy for SimplificationPattern
impl StructuralPartialEq for SimplificationPattern
Auto Trait Implementations§
impl Freeze for SimplificationPattern
impl RefUnwindSafe for SimplificationPattern
impl Send for SimplificationPattern
impl Sync for SimplificationPattern
impl Unpin for SimplificationPattern
impl UnsafeUnpin for SimplificationPattern
impl UnwindSafe for SimplificationPattern
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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