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

pub struct ParamBounds<'tcx> {
    pub region_bounds: Vec<Region>,
    pub builtin_bounds: BuiltinBounds,
    pub trait_bounds: Vec<PolyTraitRef<'tcx>>,
    pub projection_bounds: Vec<PolyProjectionPredicate<'tcx>>,
}

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
projection_bounds

Methods

impl<'tcx> ParamBounds<'tcx>

fn empty() -> ParamBounds<'tcx>

Trait Implementations

impl<'tcx> TypeFoldable<'tcx> for ParamBounds<'tcx>

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

impl<'tcx> Repr<'tcx> for ParamBounds<'tcx>

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

impl<'tcx> UserString<'tcx> for ParamBounds<'tcx>

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

Derived Implementations

impl<'tcx> Debug for ParamBounds<'tcx>

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

impl<'tcx> Clone for ParamBounds<'tcx>

fn clone(&self) -> ParamBounds<'tcx>

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

impl<'tcx> Hash for ParamBounds<'tcx>

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

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

impl<'tcx> Eq for ParamBounds<'tcx>

impl<'tcx> PartialEq for ParamBounds<'tcx>

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

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