[−][src]Enum cycle::Expr
Variants
Symbol (variable) on a ring
Special constant
Num(Number)
Exact number
Algebraic operation
Implementations
impl Expr
[src]
impl Expr
[src]
pub fn trivial(self) -> SymbolicResult<Expr>
[src]
pub fn ord(&self) -> u64
[src]
pub fn len(&self) -> u64
[src]
pub fn free(&self, o: &Expr) -> bool
[src]
pub fn subs(&self, m: &Expr, s: &Expr) -> Expr
[src]
pub fn iter(&self) -> impl Iterator<Item = &Expr> + '_
[src]
Trait Implementations
impl Add<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, o: Self) -> Self
[src]
a + b
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl Display for Expr
[src]
impl Div<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, o: Self) -> Self
[src]
a/b = a * b^-1
impl Eq for Expr
[src]
impl Mul<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, o: Self) -> Self
[src]
a*b
impl Neg for Expr
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
-a = (-1)*a
impl Ord for Expr
[src]
fn cmp(&self, o: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Expr> for Expr
[src]
impl PartialOrd<Expr> for Expr
[src]
fn partial_cmp(&self, o: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Expr
[src]
impl Sub<Expr> for Expr
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,