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 ToString for Term

fn to_string(&self) -> String

Derived Implementations

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

fn assert_receiver_is_total_eq(&self)

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