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 refinement_kind( self, def_id: LocalDefId, ) -> QueryResult<&'genv RefinementKind<'genv>>
pub fn flux_items( self, ) -> impl Iterator<Item = (FluxLocalDefId, FluxItem<'genv>)>
pub fn spec_func( &self, def_id: FluxLocalDefId, ) -> 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 [FluxLocalDefId]>
fn fn_reveals_for(self, def_id: LocalDefId) -> QueryResult<&'genv [FluxDefId]>
pub fn expect_item(self, def_id: LocalDefId) -> QueryResult<&'genv Item<'genv>>
pub fn node(self, def_id: LocalDefId) -> QueryResult<Node<'genv>>
pub fn expect_owner_node( self, def_id: LocalDefId, ) -> QueryResult<OwnerNode<'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§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