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 Display for Clause

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

Derived Implementations

impl PartialOrd for Clause

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

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

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

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

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

impl Ord for Clause

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

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

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