Enum gdl_parser::Term [−] [src]

pub enum Term {
    VarTerm(Variable),
    FuncTerm(Function),
    ConstTerm(Constant),
}

A GDL term is either a variable, a function, or a constant

Variants

VarTerm
FuncTerm
ConstTerm

Methods

impl Term

fn name(&self) -> &Constant

Returns the name of the term

Trait Implementations

impl Display for Term

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl PartialOrd for Term

fn partial_cmp(&self, __arg_0: &Term) -> Option<Ordering>

fn lt(&self, __arg_0: &Term) -> bool

fn le(&self, __arg_0: &Term) -> bool

fn gt(&self, __arg_0: &Term) -> bool

fn ge(&self, __arg_0: &Term) -> bool

impl Ord for Term

fn cmp(&self, __arg_0: &Term) -> Ordering

impl Encodable for Term

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Decodable for Term

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Term, __D>

impl PartialEq for Term

fn eq(&self, __arg_0: &Term) -> bool

fn ne(&self, __arg_0: &Term) -> bool

impl Eq for Term

impl Hash for Term

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for Term

fn clone(&self) -> Term

fn clone_from(&mut self, source: &Self)

impl Debug for Term

fn fmt(&self, __arg_0: &mut Formatter) -> Result