Enum gdl_parser::Literal [−] [src]

pub enum Literal {
    NotLit(Not),
    OrLit(Or),
    DistinctLit(Distinct),
    PropLit(Proposition),
    RelLit(Relation),
}

A GDL literal

Variants

NotLit
OrLit
DistinctLit
PropLit
RelLit

Trait Implementations

impl Display for Literal

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

Derived Implementations

impl PartialOrd for Literal

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

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

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

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

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

impl Ord for Literal

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

impl Encodable for Literal

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

impl Decodable for Literal

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

impl PartialEq for Literal

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

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

impl Eq for Literal

impl Hash for Literal

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

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

impl Clone for Literal

fn clone(&self) -> Literal

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

impl Debug for Literal

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