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

fn to_string(&self) -> String

Derived Implementations

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

fn assert_receiver_is_total_eq(&self)

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