pub trait RegionUtilitiesExt<'tcx> {
Show 13 methods
// Required methods
fn get_name(self, tcx: TyCtxt<'tcx>) -> Option<Symbol>;
fn get_name_or_anon(self, tcx: TyCtxt<'tcx>) -> Symbol;
fn is_named(self, tcx: TyCtxt<'tcx>) -> bool;
fn is_error(self) -> bool;
fn is_static(self) -> bool;
fn is_erased(self) -> bool;
fn is_placeholder(self) -> bool;
fn bound_at_or_above_binder(self, index: DebruijnIndex) -> bool;
fn is_param(self) -> bool;
fn is_free(self) -> bool;
fn is_var(self) -> bool;
fn as_var(self) -> RegionVid;
fn opt_param_def_id(
self,
tcx: TyCtxt<'tcx>,
binding_item: DefId,
) -> Option<DefId>;
}Expand description
Region utilities
Required Methods§
fn get_name(self, tcx: TyCtxt<'tcx>) -> Option<Symbol>
fn get_name_or_anon(self, tcx: TyCtxt<'tcx>) -> Symbol
fn is_error(self) -> bool
fn is_static(self) -> bool
fn is_erased(self) -> bool
fn is_placeholder(self) -> bool
fn bound_at_or_above_binder(self, index: DebruijnIndex) -> bool
Sourcefn is_free(self) -> bool
fn is_free(self) -> bool
True for free region in the current context.
This is the case for 'static and param regions.
fn is_var(self) -> bool
fn as_var(self) -> RegionVid
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".