Enum syntax::ast::TyParamBoundExperimental [-]  [+] [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 Show for TyParamBound

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

impl<__S: Writer> Hash<__S> for TyParamBound

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for TyParamBound

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for TyParamBound

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

impl Eq for TyParamBound

fn assert_receiver_is_total_eq(&self)

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)