Struct gdl_parser::Distinct [-] [+] [src]

pub struct Distinct {
    pub term1: Term,
    pub term2: Term,
}

A distinct literal

Fields

term1
term2

Methods

impl Distinct

fn new(term1: Term, term2: Term) -> Distinct

Trait Implementations

impl Into<Literal> for Distinct

fn into(self) -> Literal

impl ToString for Distinct

fn to_string(&self) -> String

Derived Implementations

impl Encodable for Distinct

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

impl Decodable for Distinct

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

impl PartialEq for Distinct

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

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

impl Eq for Distinct

fn assert_receiver_is_total_eq(&self)

impl Hash for Distinct

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

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

impl Clone for Distinct

fn clone(&self) -> Distinct

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

impl Debug for Distinct

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