Enum syntex_syntax::ast::WherePredicate [] [src]

pub enum WherePredicate {
    BoundPredicate(WhereBoundPredicate),
    RegionPredicate(WhereRegionPredicate),
    EqPredicate(WhereEqPredicate),
}

A single predicate in a where clause

Variants

BoundPredicate

A type binding, eg for<'c> Foo: Send+Clone+'c

RegionPredicate

A lifetime predicate, e.g. 'a: 'b+'c

EqPredicate

An equality predicate (unsupported)

Trait Implementations

Derived Implementations

impl Debug for WherePredicate

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

impl Hash for WherePredicate

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

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

impl Decodable for WherePredicate

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

impl Encodable for WherePredicate

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

impl Eq for WherePredicate

impl PartialEq for WherePredicate

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

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

impl Clone for WherePredicate

fn clone(&self) -> WherePredicate

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