Enum prolog_parser::ast::Term
source · pub enum Term {
AnonVar,
Clause(Cell<RegType>, ClauseName, Vec<Box<Term>>, Option<Fixity>),
Cons(Cell<RegType>, Box<Term>, Box<Term>),
Constant(Cell<RegType>, Constant),
Var(Cell<VarReg>, Rc<Var>),
}Variants
AnonVar
Clause(Cell<RegType>, ClauseName, Vec<Box<Term>>, Option<Fixity>)
Cons(Cell<RegType>, Box<Term>, Box<Term>)
Constant(Cell<RegType>, Constant)
Var(Cell<VarReg>, Rc<Var>)
Implementations
Trait Implementations
impl Eq for Term
impl StructuralEq for Term
impl StructuralPartialEq for Term
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more