[][src]Enum prolog_parser::ast::Term

pub enum Term {
    AnonVar,
    Clause(Cell<RegType>, ClauseNameVec<Box<Term>>, Option<SharedOpDesc>),
    Cons(Cell<RegType>, Box<Term>, Box<Term>),
    Constant(Cell<RegType>, Constant),
    Var(Cell<VarReg>, Rc<Var>),
}

Variants

AnonVar
Cons(Cell<RegType>, Box<Term>, Box<Term>)
Constant(Cell<RegType>, Constant)
Var(Cell<VarReg>, Rc<Var>)

Implementations

impl Term[src]

pub fn shared_op_desc(&self) -> Option<SharedOpDesc>[src]

pub fn to_constant(self) -> Option<Constant>[src]

pub fn first_arg(&self) -> Option<&Term>[src]

pub fn set_name(&mut self, new_name: ClauseName)[src]

pub fn name(&self) -> Option<ClauseName>[src]

pub fn arity(&self) -> usize[src]

Trait Implementations

impl Clone for Term[src]

impl Debug for Term[src]

impl Eq for Term[src]

impl PartialEq<Term> for Term[src]

impl StructuralEq for Term[src]

impl StructuralPartialEq for Term[src]

Auto Trait Implementations

impl !RefUnwindSafe for Term

impl !Send for Term

impl !Sync for Term

impl Unpin for Term

impl !UnwindSafe for Term

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

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

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

impl<T> CheckedAs for T[src]

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

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

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for 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.

impl<T> WrappingAs for T[src]