Struct flux_middle::queries::Providers

source ·
pub struct Providers {
Show 21 fields pub collect_specs: fn(_: GlobalEnv<'_, '_>) -> Specs, pub resolve_crate: fn(_: GlobalEnv<'_, '_>) -> ResolverOutput, pub desugar: for<'genv> fn(_: GlobalEnv<'genv, '_>, _: LocalDefId) -> QueryResult<UnordMap<LocalDefId, Node<'genv>>>, pub fhir_crate: for<'genv> fn(_: GlobalEnv<'genv, '_>) -> FluxItems<'genv>, pub qualifiers: fn(_: GlobalEnv<'_, '_>) -> QueryResult<Vec<Qualifier>>, pub spec_func_defns: fn(_: GlobalEnv<'_, '_>) -> QueryResult<SpecFuncDefns>, pub spec_func_decl: fn(_: GlobalEnv<'_, '_>, _: Symbol) -> QueryResult<SpecFuncDecl>, pub adt_sort_def_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AdtSortDef>, pub check_wf: for<'genv> fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Rc<WfckResults>>, pub adt_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AdtDef>, pub type_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<TyOrCtor>>, pub variants_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Opaqueness<EarlyBinder<PolyVariants>>>, pub fn_sig: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<PolyFnSig>>, pub generics_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Generics>, pub refinement_generics_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<RefinementGenerics>, pub predicates_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<GenericPredicates>>, pub assoc_refinements_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AssocRefinements>, pub sort_of_assoc_reft: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<Option<EarlyBinder<FuncSort>>>, pub assoc_refinement_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<EarlyBinder<Lambda>>, pub default_assoc_refinement_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<Option<EarlyBinder<Lambda>>>, pub item_bounds: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<List<Clause>>>,
}

Fields§

§collect_specs: fn(_: GlobalEnv<'_, '_>) -> Specs§resolve_crate: fn(_: GlobalEnv<'_, '_>) -> ResolverOutput§desugar: for<'genv> fn(_: GlobalEnv<'genv, '_>, _: LocalDefId) -> QueryResult<UnordMap<LocalDefId, Node<'genv>>>§fhir_crate: for<'genv> fn(_: GlobalEnv<'genv, '_>) -> FluxItems<'genv>§qualifiers: fn(_: GlobalEnv<'_, '_>) -> QueryResult<Vec<Qualifier>>§spec_func_defns: fn(_: GlobalEnv<'_, '_>) -> QueryResult<SpecFuncDefns>§spec_func_decl: fn(_: GlobalEnv<'_, '_>, _: Symbol) -> QueryResult<SpecFuncDecl>§adt_sort_def_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AdtSortDef>§check_wf: for<'genv> fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Rc<WfckResults>>§adt_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AdtDef>§type_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<TyOrCtor>>§variants_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Opaqueness<EarlyBinder<PolyVariants>>>§fn_sig: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<PolyFnSig>>§generics_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<Generics>§refinement_generics_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<RefinementGenerics>§predicates_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<GenericPredicates>>§assoc_refinements_of: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<AssocRefinements>§sort_of_assoc_reft: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<Option<EarlyBinder<FuncSort>>>§assoc_refinement_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<EarlyBinder<Lambda>>§default_assoc_refinement_def: fn(_: GlobalEnv<'_, '_>, _: LocalDefId, _: Symbol) -> QueryResult<Option<EarlyBinder<Lambda>>>§item_bounds: fn(_: GlobalEnv<'_, '_>, _: LocalDefId) -> QueryResult<EarlyBinder<List<Clause>>>

Trait Implementations§

source§

impl Default for Providers

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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>,

§

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>,

§

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.