Struct rustc_lint::middle::ty::ParamBounds
[−]
[src]
pub struct ParamBounds<'tcx> {
pub region_bounds: Vec<Region>,
pub builtin_bounds: EnumSet<BuiltinBound>,
pub trait_bounds: Vec<Binder<TraitRef<'tcx>>>,
pub projection_bounds: Vec<Binder<ProjectionPredicate<'tcx>>>,
}Unstable
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 | Unstable |
builtin_bounds | Unstable |
trait_bounds | Unstable |
projection_bounds | Unstable |
Methods
impl<'tcx> ParamBounds<'tcx>
fn empty() -> ParamBounds<'tcx>
Unstable