Struct flux_middle::global_env::Map
source · pub struct Map<'genv, 'tcx> {
genv: GlobalEnv<'genv, 'tcx>,
fhir: &'genv FluxItems<'genv>,
}
Fields§
§genv: GlobalEnv<'genv, 'tcx>
§fhir: &'genv FluxItems<'genv>
Implementations§
source§impl<'genv, 'tcx> Map<'genv, 'tcx>
impl<'genv, 'tcx> Map<'genv, 'tcx>
fn new(genv: GlobalEnv<'genv, 'tcx>, fhir: &'genv FluxItems<'genv>) -> Self
pub fn get_generics( self, def_id: LocalDefId, ) -> QueryResult<Option<&'genv Generics<'genv>>>
pub fn get_flux_item(self, name: Symbol) -> Option<&'genv FluxItem<'genv>>
pub fn refined_by( self, def_id: LocalDefId, ) -> QueryResult<&'genv RefinedBy<'genv>>
pub fn spec_funcs(self) -> impl Iterator<Item = &'genv SpecFunc<'genv>>
pub fn spec_func(&self, name: Symbol) -> Option<&'genv SpecFunc<'genv>>
pub fn qualifiers(self) -> impl Iterator<Item = &'genv Qualifier<'genv>>
pub fn fn_quals_for(self, def_id: LocalDefId) -> QueryResult<&'genv [Ident]>
pub fn expect_item(self, def_id: LocalDefId) -> QueryResult<&'genv Item<'genv>>
pub fn node(self, def_id: LocalDefId) -> QueryResult<Node<'genv>>
Trait Implementations§
impl<'genv, 'tcx> Copy for Map<'genv, 'tcx>
Auto Trait Implementations§
impl<'genv, 'tcx> Freeze for Map<'genv, 'tcx>
impl<'genv, 'tcx> !RefUnwindSafe for Map<'genv, 'tcx>
impl<'genv, 'tcx> !Send for Map<'genv, 'tcx>
impl<'genv, 'tcx> !Sync for Map<'genv, 'tcx>
impl<'genv, 'tcx> Unpin for Map<'genv, 'tcx>
impl<'genv, 'tcx> !UnwindSafe for Map<'genv, 'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more