pub type PolyTraitDeclRef = RegionBinder<TraitDeclRef>;Expand description
A quantified trait predicate, e.g. for<'a> Type<'a>: Trait<'a, Args>.
Aliased Type§
pub struct PolyTraitDeclRef {
pub regions: IndexVec<RegionId, RegionParam>,
pub regions_outlive: Vec<RegionBinder<OutlivesPred<Region, Region>>>,
pub types_outlive: Vec<RegionBinder<OutlivesPred<Ty, Region>>>,
pub skip_binder: TraitDeclRef,
}Fields§
§regions: IndexVec<RegionId, RegionParam>§regions_outlive: Vec<RegionBinder<OutlivesPred<Region, Region>>>Outlives relations involving the bound regions.
types_outlive: Vec<RegionBinder<OutlivesPred<Ty, Region>>>Outlives relations involving the bound regions.
skip_binder: TraitDeclRefNamed this way to highlight accesses to the inner value that might be handling parameters incorrectly. Prefer using helper methods.
Implementations§
Source§impl PolyTraitDeclRef
impl PolyTraitDeclRef
Sourcepub fn identity_region_args(&self) -> RegionArgs
pub fn identity_region_args(&self) -> RegionArgs
The region arguments at depth 0 corresponding to this tref’s bound regions.