Struct gdl_parser::Constant [−] [src]

pub struct Constant {
    pub name: String,
}

A GDL constant

Fields

name

Methods

impl Constant

fn new<T: Into<String>>(name: T) -> Constant

Trait Implementations

impl Into<Term> for Constant

fn into(self) -> Term

impl Display for Constant

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

Derived Implementations

impl PartialOrd for Constant

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

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

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

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

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

impl Ord for Constant

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

impl Encodable for Constant

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

impl Decodable for Constant

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

impl PartialEq for Constant

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

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

impl Eq for Constant

impl Hash for Constant

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

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

impl Clone for Constant

fn clone(&self) -> Constant

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

impl Debug for Constant

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