Enum gdl_parser::Sentence [−] [src]

pub enum Sentence {
    PropSentence(Proposition),
    RelSentence(Relation),
}

A GDL sentence is like a Rule without a body. The two types of Sentences are Relations and Propositions

Variants

PropSentence

A proposition sentence

RelSentence

A relation sentence

Methods

impl Sentence

fn name(&self) -> &Constant

Returns the name of the sentence

Trait Implementations

impl Into<Literal> for Sentence

fn into(self) -> Literal

impl Into<Rule> for Sentence

fn into(self) -> Rule

impl Into<Clause> for Sentence

fn into(self) -> Clause

impl Display for Sentence

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

Derived Implementations

impl PartialOrd for Sentence

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

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

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

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

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

impl Ord for Sentence

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

impl Encodable for Sentence

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

impl Decodable for Sentence

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

impl PartialEq for Sentence

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

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

impl Eq for Sentence

impl Hash for Sentence

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

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

impl Clone for Sentence

fn clone(&self) -> Sentence

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

impl Debug for Sentence

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