Skip to main content

RegionName

Trait RegionName 

Source
pub trait RegionName<I>:
    Copy
    + Hash
    + PartialEq
    + Eq
    + Debug
where I: Interner,
{ // Required methods fn get_name(&self, interner: I) -> Option<<I as Interner>::Symbol>; fn is_named(&self, interner: I) -> bool; }

Required Methods§

Source

fn get_name(&self, interner: I) -> Option<<I as Interner>::Symbol>

Source

fn is_named(&self, interner: I) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'tcx> RegionName<TyCtxt<'tcx>> for EarlyParamRegion

Source§

fn is_named(&self, _tcx: TyCtxt<'tcx>) -> bool

Does this early bound region have a name? Early bound regions normally always have names except when using anonymous lifetimes ('_).

Source§

fn get_name(&self, _tcx: TyCtxt<'tcx>) -> Option<Symbol>

Source§

impl<'tcx> RegionName<TyCtxt<'tcx>> for LateParamRegionKind

Source§

fn get_name(&self, tcx: TyCtxt<'tcx>) -> Option<Symbol>

Source§

fn is_named(&self, tcx: TyCtxt<'tcx>) -> bool

Implementors§