Struct rustc::middle::ty::ParamBoundsExperimental [-]  [+] [src]

pub struct ParamBounds {
    pub region_bounds: Vec<Region>,
    pub builtin_bounds: BuiltinBounds,
    pub trait_bounds: Vec<Rc<TraitRef>>,
}

Bounds suitable for a named type parameter like A in fn foo<A> as well as the existential type parameter in an object type.

Fields

region_bounds
builtin_bounds
trait_bounds

Methods

impl ParamBounds

fn empty() -> ParamBounds

Trait Implementations

impl TypeFoldable for ParamBounds

fn fold_with<'tcx, F: TypeFolder<'tcx>>(&self, folder: &mut F) -> ParamBounds

impl Repr for ParamBounds

fn repr(&self, tcx: &ctxt) -> String

impl UserString for ParamBounds

fn user_string(&self, tcx: &ctxt) -> String

Derived Implementations

impl Show for ParamBounds

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

impl Clone for ParamBounds

fn clone(&self) -> ParamBounds

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

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

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

impl Eq for ParamBounds

fn assert_receiver_is_total_eq(&self)

impl PartialEq for ParamBounds

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

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