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

fn to_string(&self) -> String

Derived Implementations

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

fn assert_receiver_is_total_eq(&self)

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