Enum syntex_syntax::ast::TyParamBound [] [src]

pub enum TyParamBound {
    TraitTyParamBound(PolyTraitRef, TraitBoundModifier),
    RegionTyParamBound(Lifetime),
}

The AST represents all type param bounds as types. typeck::collect::compute_bounds matches these against the "special" built-in traits (see middle::lang_items) and detects Copy, Send and Sync.

Variants

TraitTyParamBound
RegionTyParamBound

Trait Implementations

Derived Implementations

impl Debug for TyParamBound

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

impl Hash for TyParamBound

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

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

impl Decodable for TyParamBound

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

impl Encodable for TyParamBound

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

impl Eq for TyParamBound

impl PartialEq for TyParamBound

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

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

impl Clone for TyParamBound

fn clone(&self) -> TyParamBound

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