Type Alias PolyTraitDeclRef

Source
pub type PolyTraitDeclRef = RegionBinder<TraitDeclRef>;
Expand description

A quantified trait predicate, e.g. for<'a> Type<'a>: Trait<'a, Args>.

Aliased Type§

struct PolyTraitDeclRef {
    pub regions: Vector<RegionId, RegionVar>,
    pub skip_binder: TraitDeclRef,
}

Fields§

§regions: Vector<RegionId, RegionVar>§skip_binder: TraitDeclRef

Named this way to highlight accesses to the inner value that might be handling parameters incorrectly. Prefer using helper methods.

Trait Implementations§

Source§

impl<C: AstFormatter> FmtWithCtx<C> for PolyTraitDeclRef

Source§

fn fmt_with_ctx(&self, ctx: &C, f: &mut Formatter<'_>) -> Result

Source§

fn with_ctx<'a>(&'a self, ctx: &'a C) -> WithCtx<'a, C, Self>

Returns a struct that implements Display. This allows the following: Read more
Source§

fn to_string_with_ctx(&self, ctx: &C) -> String