Enum logic::expr::Expr [] [src]

pub enum Expr<T> {
    Truth(bool),
    Proposition(Rc<T>),
    Not(Box<Expr<T>>),
    And(Box<Expr<T>>, Box<Expr<T>>),
    Or(Box<Expr<T>>, Box<Expr<T>>),
    Xor(Box<Expr<T>>, Box<Expr<T>>),
    Implies(Box<Expr<T>>, Box<Expr<T>>),
    Equivalent(Box<Expr<T>>, Box<Expr<T>>),
}

Variants

Methods

impl<T> Expr<T>
[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Debug> Debug for Expr<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for Expr<T>
[src]

impl<T: PartialEq> PartialEq for Expr<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Hash> Hash for Expr<T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Clone for Expr<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Display for Expr<T> where
    T: Display
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Not for Expr<T>
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl<RHS, T> BitAnd<RHS> for Expr<T> where
    RHS: Into<Expr<T>>, 
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<RHS, T> BitOr<RHS> for Expr<T> where
    RHS: Into<Expr<T>>, 
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<RHS, T> BitXor<RHS> for Expr<T> where
    RHS: Into<Expr<T>>, 
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

Auto Trait Implementations

impl<T> !Send for Expr<T>

impl<T> !Sync for Expr<T>