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

fn to_string(&self) -> String

Derived Implementations

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

fn assert_receiver_is_total_eq(&self)

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