flux_middle::queries

Struct Queries

Source
pub struct Queries<'genv, 'tcx> {
Show 28 fields pub(crate) providers: Providers, mir: RefCell<UnordMap<LocalDefId, QueryResult<Rc<Body<'tcx>>>>>, collect_specs: OnceCell<Specs>, resolve_crate: OnceCell<ResolverOutput>, desugar: RefCell<UnordMap<LocalDefId, QueryResult<Node<'genv>>>>, fhir_crate: OnceCell<FluxItems<'genv>>, lower_generics_of: RefCell<UnordMap<DefId, Generics<'tcx>>>, lower_predicates_of: RefCell<UnordMap<DefId, QueryResult<GenericPredicates>>>, lower_type_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<Ty>>>>, lower_fn_sig: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<PolyFnSig>>>>, defns: OnceCell<QueryResult<SpecFuncDefns>>, func_decls: RefCell<UnordMap<Symbol, QueryResult<SpecFuncDecl>>>, qualifiers: OnceCell<QueryResult<Vec<Qualifier>>>, adt_sort_def_of: RefCell<UnordMap<DefId, QueryResult<AdtSortDef>>>, check_wf: RefCell<UnordMap<LocalDefId, QueryResult<Rc<WfckResults>>>>, adt_def: RefCell<UnordMap<DefId, QueryResult<AdtDef>>>, generics_of: RefCell<UnordMap<DefId, QueryResult<Generics>>>, refinement_generics_of: RefCell<UnordMap<DefId, QueryResult<RefinementGenerics>>>, predicates_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<GenericPredicates>>>>, assoc_refinements_of: RefCell<UnordMap<DefId, QueryResult<AssocRefinements>>>, assoc_refinement_def: RefCell<UnordMap<(DefId, Symbol), QueryResult<EarlyBinder<Lambda>>>>, default_assoc_refinement_def: RefCell<UnordMap<(DefId, Symbol), QueryResult<Option<EarlyBinder<Lambda>>>>>, sort_of_assoc_reft: RefCell<UnordMap<(DefId, Symbol), QueryResult<Option<EarlyBinder<FuncSort>>>>>, item_bounds: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<List<Clause>>>>>, type_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<TyOrCtor>>>>, variants_of: RefCell<UnordMap<DefId, QueryResult<Opaqueness<EarlyBinder<PolyVariants>>>>>, fn_sig: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<PolyFnSig>>>>, lower_late_bound_vars: RefCell<UnordMap<LocalDefId, QueryResult<List<BoundVariableKind>>>>,
}

Fields§

§providers: Providers§mir: RefCell<UnordMap<LocalDefId, QueryResult<Rc<Body<'tcx>>>>>§collect_specs: OnceCell<Specs>§resolve_crate: OnceCell<ResolverOutput>§desugar: RefCell<UnordMap<LocalDefId, QueryResult<Node<'genv>>>>§fhir_crate: OnceCell<FluxItems<'genv>>§lower_generics_of: RefCell<UnordMap<DefId, Generics<'tcx>>>§lower_predicates_of: RefCell<UnordMap<DefId, QueryResult<GenericPredicates>>>§lower_type_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<Ty>>>>§lower_fn_sig: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<PolyFnSig>>>>§defns: OnceCell<QueryResult<SpecFuncDefns>>§func_decls: RefCell<UnordMap<Symbol, QueryResult<SpecFuncDecl>>>§qualifiers: OnceCell<QueryResult<Vec<Qualifier>>>§adt_sort_def_of: RefCell<UnordMap<DefId, QueryResult<AdtSortDef>>>§check_wf: RefCell<UnordMap<LocalDefId, QueryResult<Rc<WfckResults>>>>§adt_def: RefCell<UnordMap<DefId, QueryResult<AdtDef>>>§generics_of: RefCell<UnordMap<DefId, QueryResult<Generics>>>§refinement_generics_of: RefCell<UnordMap<DefId, QueryResult<RefinementGenerics>>>§predicates_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<GenericPredicates>>>>§assoc_refinements_of: RefCell<UnordMap<DefId, QueryResult<AssocRefinements>>>§assoc_refinement_def: RefCell<UnordMap<(DefId, Symbol), QueryResult<EarlyBinder<Lambda>>>>§default_assoc_refinement_def: RefCell<UnordMap<(DefId, Symbol), QueryResult<Option<EarlyBinder<Lambda>>>>>§sort_of_assoc_reft: RefCell<UnordMap<(DefId, Symbol), QueryResult<Option<EarlyBinder<FuncSort>>>>>§item_bounds: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<List<Clause>>>>>§type_of: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<TyOrCtor>>>>§variants_of: RefCell<UnordMap<DefId, QueryResult<Opaqueness<EarlyBinder<PolyVariants>>>>>§fn_sig: RefCell<UnordMap<DefId, QueryResult<EarlyBinder<PolyFnSig>>>>§lower_late_bound_vars: RefCell<UnordMap<LocalDefId, QueryResult<List<BoundVariableKind>>>>

Implementations§

Source§

impl<'genv, 'tcx> Queries<'genv, 'tcx>

Source

pub(crate) fn new(providers: Providers) -> Self

Source

pub(crate) fn mir( &self, genv: GlobalEnv<'genv, 'tcx>, def_id: LocalDefId, ) -> QueryResult<Rc<Body<'tcx>>>

Source

pub(crate) fn collect_specs( &'genv self, genv: GlobalEnv<'genv, 'tcx>, ) -> &'genv Specs

Source

pub(crate) fn resolve_crate( &'genv self, genv: GlobalEnv<'genv, 'tcx>, ) -> &'genv ResolverOutput

Source

pub(crate) fn desugar( &'genv self, genv: GlobalEnv<'genv, 'tcx>, def_id: LocalDefId, ) -> QueryResult<Node<'genv>>

Source

pub(crate) fn fhir_crate( &'genv self, genv: GlobalEnv<'genv, 'tcx>, ) -> &'genv FluxItems<'genv>

Source

pub(crate) fn lower_generics_of( &self, genv: GlobalEnv<'genv, 'tcx>, def_id: DefId, ) -> Generics<'tcx>

Source

pub(crate) fn lower_predicates_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<GenericPredicates>

Source

pub(crate) fn lower_type_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<EarlyBinder<Ty>>

Source

pub(crate) fn lower_fn_sig( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<EarlyBinder<PolyFnSig>>

Source

pub(crate) fn lower_late_bound_vars( &self, genv: GlobalEnv<'_, '_>, def_id: LocalDefId, ) -> QueryResult<List<BoundVariableKind>>

Source

pub(crate) fn spec_func_defns( &self, genv: GlobalEnv<'_, '_>, ) -> QueryResult<&SpecFuncDefns>

Source

pub(crate) fn func_decl( &self, genv: GlobalEnv<'_, '_>, name: Symbol, ) -> QueryResult<SpecFuncDecl>

Source

pub(crate) fn qualifiers( &self, genv: GlobalEnv<'_, '_>, ) -> QueryResult<&[Qualifier]>

Source

pub(crate) fn adt_sort_def_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<AdtSortDef>

Source

pub(crate) fn check_wf( &self, genv: GlobalEnv<'genv, '_>, def_id: LocalDefId, ) -> QueryResult<Rc<WfckResults>>

Source

pub(crate) fn adt_def( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<AdtDef>

Source

pub(crate) fn generics_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<Generics>

Source

pub(crate) fn refinement_generics_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<RefinementGenerics>

Source

pub(crate) fn item_bounds( &self, genv: GlobalEnv<'genv, 'tcx>, def_id: DefId, ) -> QueryResult<EarlyBinder<List<Clause>>>

Source

pub(crate) fn predicates_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<EarlyBinder<GenericPredicates>>

Source

pub(crate) fn assoc_refinements_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<AssocRefinements>

Source

pub(crate) fn assoc_refinement_def( &self, genv: GlobalEnv<'_, '_>, impl_id: DefId, name: Symbol, ) -> QueryResult<EarlyBinder<Lambda>>

Source

pub(crate) fn default_assoc_refinement_def( &self, genv: GlobalEnv<'_, '_>, trait_id: DefId, name: Symbol, ) -> QueryResult<Option<EarlyBinder<Lambda>>>

Source

pub(crate) fn sort_of_assoc_reft( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, name: Symbol, ) -> QueryResult<Option<EarlyBinder<FuncSort>>>

Source

pub(crate) fn type_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<EarlyBinder<TyOrCtor>>

Source

pub(crate) fn variants_of( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<Opaqueness<EarlyBinder<PolyVariants>>>

Source

pub(crate) fn fn_sig( &self, genv: GlobalEnv<'_, '_>, def_id: DefId, ) -> QueryResult<EarlyBinder<PolyFnSig>>

Auto Trait Implementations§

§

impl<'genv, 'tcx> !Freeze for Queries<'genv, 'tcx>

§

impl<'genv, 'tcx> !RefUnwindSafe for Queries<'genv, 'tcx>

§

impl<'genv, 'tcx> !Send for Queries<'genv, 'tcx>

§

impl<'genv, 'tcx> !Sync for Queries<'genv, 'tcx>

§

impl<'genv, 'tcx> Unpin for Queries<'genv, 'tcx>

§

impl<'genv, 'tcx> !UnwindSafe for Queries<'genv, 'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<P> IntoQueryParam<P> for P

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.