rustc_hir_analysis::collect::resolve_bound_vars

Trait RegionExt

Source
trait RegionExt {
    // Required methods
    fn early(param: &GenericParam<'_>) -> ResolvedArg;
    fn late(idx: u32, param: &GenericParam<'_>) -> ResolvedArg;
    fn id(&self) -> Option<LocalDefId>;
    fn shifted(self, amount: u32) -> ResolvedArg;
}

Required Methods§

Source

fn early(param: &GenericParam<'_>) -> ResolvedArg

Source

fn late(idx: u32, param: &GenericParam<'_>) -> ResolvedArg

Source

fn id(&self) -> Option<LocalDefId>

Source

fn shifted(self, amount: u32) -> ResolvedArg

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RegionExt for ResolvedArg

Source§

fn early(param: &GenericParam<'_>) -> ResolvedArg

Source§

fn late(idx: u32, param: &GenericParam<'_>) -> ResolvedArg

Source§

fn id(&self) -> Option<LocalDefId>

Source§

fn shifted(self, amount: u32) -> ResolvedArg

Implementors§