Struct gdl_parser::Proposition [−] [src]

pub struct Proposition {
    pub name: Constant,
}

A proposition is a Relation with no body; it only has a name.

Fields

name

Methods

impl Proposition

fn new<T: Into<Constant>>(name: T) -> Proposition

Trait Implementations

impl Into<Literal> for Proposition

fn into(self) -> Literal

impl Into<Sentence> for Proposition

fn into(self) -> Sentence

impl Into<Relation> for Proposition

fn into(self) -> Relation

impl Display for Proposition

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

Derived Implementations

impl PartialOrd for Proposition

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

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

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

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

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

impl Ord for Proposition

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

impl Encodable for Proposition

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

impl Decodable for Proposition

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

impl PartialEq for Proposition

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

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

impl Eq for Proposition

impl Hash for Proposition

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

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

impl Clone for Proposition

fn clone(&self) -> Proposition

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

impl Debug for Proposition

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