[][src]Enum epilog::ast::Ast

pub enum Ast<L, V> {
    Lit(L),
    Var(Var<V>),
    List(Term<L, V>, Vec<Ast<L, V>>),
    Dict(Term<L, V>, HashMap<L, Ast<L, V>>),
}

Variants

Lit(L)
Var(Var<V>)
List(Term<L, V>, Vec<Ast<L, V>>)
Dict(Term<L, V>, HashMap<L, Ast<L, V>>)

NOTE: do NOT rely on unification order for this

Trait Implementations

impl<L: Clone, V: Clone> Clone for Ast<L, V>[src]

impl<L: Debug, V: Debug> Debug for Ast<L, V>[src]

impl<L: Eq + Hash, V: Eq + Hash> Eq for Ast<L, V>[src]

impl<L, V: Eq + Hash> FreeVars<Var<V>> for Ast<L, V>[src]

impl<L, V> From<Term<L, V>> for Ast<L, V>[src]

impl<L, V> From<Var<V>> for Ast<L, V>[src]

impl<L: Eq + Hash, V: Eq + Hash> PartialEq<Ast<L, V>> for Ast<L, V>[src]

impl<L: Clone + Eq + Hash, V: Clone + Eq + Hash> SubWith<Var<V>, Ast<L, V>> for Ast<L, V>[src]

type Error = Error

impl<L: Clone, V: Clone + Eq + Hash> SubWith<Var<V>, Ast<L, V>> for Term<L, V>[src]

type Error = Error

impl<L, V> TryFrom<Ast<L, V>> for Term<L, V>[src]

type Error = Ast<L, V>

The type returned in the event of a conversion error.

impl<L: Clone + Eq + Hash, V: Clone + Eq + Hash> Unify<Var<V>, Ast<L, V>> for Ast<L, V>[src]

type Error = Error

impl<L: Clone + Eq + Hash, V: Clone + Eq + Hash> Unify<Var<V>, Ast<L, V>> for Term<L, V>[src]

type Error = Error

Auto Trait Implementations

impl<L, V> RefUnwindSafe for Ast<L, V> where
    L: RefUnwindSafe,
    V: RefUnwindSafe

impl<L, V> Send for Ast<L, V> where
    L: Send,
    V: Send

impl<L, V> Sync for Ast<L, V> where
    L: Sync,
    V: Sync

impl<L, V> Unpin for Ast<L, V> where
    L: Unpin,
    V: Unpin

impl<L, V> UnwindSafe for Ast<L, V> where
    L: UnwindSafe,
    V: UnwindSafe

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, 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.