[][src]Enum cycle::Expr

pub enum Expr {
    Sym(Rc<Symbol>),
    Cte(Rc<Constant>),
    Num(Number),
    Alg(Algebra),
}

Variants

Sym(Rc<Symbol>)

Symbol (variable) on a ring

Cte(Rc<Constant>)

Special constant

Num(Number)

Exact number

Alg(Algebra)

Algebraic operation

Implementations

impl Expr[src]

pub fn fac(self) -> Expr[src]

a!

pub fn pow(self, o: Expr) -> Expr[src]

a^b

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]

impl PartialEq<Expr> for Expr[src]

impl PartialOrd<Expr> for Expr[src]

impl StructuralPartialEq for Expr[src]

impl Sub<Expr> for Expr[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, o: Self) -> Self[src]

a - b = a + (-b)

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.