pub struct ResolverData<'db> {
pub module_id: ModuleId<'db>,
pub generic_params: Vec<GenericParamId<'db>>,
pub type_enriched_members: OrderedHashMap<(TypeId<'db>, bool), EnrichedMembers<'db>>,
pub resolved_items: ResolvedItems<'db>,
pub inference_data: InferenceData<'db>,
pub trait_or_impl_ctx: TraitOrImplContext<'db>,
pub feature_config: FeatureConfig<'db>,
pub used_uses: OrderedHashSet<UseId<'db>>,
/* private fields */
}Fields§
§module_id: ModuleId<'db>Current module in which to resolve the path.
generic_params: Vec<GenericParamId<'db>>All generic parameters accessible to the resolver.
type_enriched_members: OrderedHashMap<(TypeId<'db>, bool), EnrichedMembers<'db>>The enriched members per type and its mutability in the resolver context.
resolved_items: ResolvedItems<'db>Lookback map for resolved identifiers in path. Used in “Go to definition”.
inference_data: InferenceData<'db>Inference data for the resolver.
trait_or_impl_ctx: TraitOrImplContext<'db>The trait/impl context the resolver is currently in. Used to resolve “Self::” paths.
feature_config: FeatureConfig<'db>The configuration of allowed features.
used_uses: OrderedHashSet<UseId<'db>>The set of used use items in the current context.
Implementations§
Source§impl<'db> ResolverData<'db>
impl<'db> ResolverData<'db>
pub fn new(module_id: ModuleId<'db>, inference_id: InferenceId<'db>) -> Self
pub fn clone_with_inference_id( &self, db: &'db dyn Database, inference_id: InferenceId<'db>, ) -> Self
Trait Implementations§
Source§impl<'db> Debug for ResolverData<'db>
impl<'db> Debug for ResolverData<'db>
Source§impl<'db> DebugWithDb<'db> for ResolverData<'db>
impl<'db> DebugWithDb<'db> for ResolverData<'db>
type Db = dyn Database
fn fmt(&self, f: &mut Formatter<'_>, db: &'db dyn Database) -> Result
fn debug<'me>(&'me self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
fn into_debug<'me>(self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
Source§impl<'db> PartialEq for ResolverData<'db>
impl<'db> PartialEq for ResolverData<'db>
Source§impl<'db> Update for ResolverData<'db>
impl<'db> Update for ResolverData<'db>
impl<'db> Eq for ResolverData<'db>
impl<'db> StructuralPartialEq for ResolverData<'db>
Auto Trait Implementations§
impl<'db> Freeze for ResolverData<'db>
impl<'db> RefUnwindSafe for ResolverData<'db>
impl<'db> Send for ResolverData<'db>
impl<'db> Sync for ResolverData<'db>
impl<'db> Unpin for ResolverData<'db>
impl<'db> UnwindSafe for ResolverData<'db>
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<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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