Enum gdl_parser::Clause [-] [+] [src]

pub enum Clause {
    RuleClause(Rule),
    SentenceClause(Sentence),
}

A top level statement in GDL. The only types of top level statements are Rules and Sentences

Variants

RuleClause
SentenceClause

Trait Implementations

impl ToString for Clause

fn to_string(&self) -> String

Derived Implementations

impl Encodable for Clause

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

impl Decodable for Clause

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

impl PartialEq for Clause

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

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

impl Eq for Clause

fn assert_receiver_is_total_eq(&self)

impl Hash for Clause

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

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

impl Clone for Clause

fn clone(&self) -> Clause

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

impl Debug for Clause

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