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

fn to_string(&self) -> String

Derived Implementations

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

fn assert_receiver_is_total_eq(&self)

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