pub struct InherentImpls<'db> {
map: FxHashMap<SimplifiedType<'db>, Box<[ImplId]>>,
}Fields§
§map: FxHashMap<SimplifiedType<'db>, Box<[ImplId]>>Implementations§
Source§impl<'db> InherentImpls<'db>
impl<'db> InherentImpls<'db>
pub fn for_crate( db: &'db dyn HirDatabase, krate: Crate, ) -> &'db InherentImpls<'db>
pub fn for_block( db: &'db dyn HirDatabase, block: BlockIdLt<'db>, ) -> &'db Option<Box<InherentImpls<'db>>>
Source§impl<'db> InherentImpls<'db>
impl<'db> InherentImpls<'db>
fn collect_def_map(db: &'db dyn HirDatabase, def_map: &'db DefMap) -> Self
pub fn for_self_ty(&self, self_ty: &SimplifiedType<'db>) -> &[ImplId]
pub fn for_each_crate_and_block( db: &'db dyn HirDatabase, krate: Crate, block: Option<BlockIdLt<'db>>, for_each: &mut dyn FnMut(&InherentImpls<'db>), )
Trait Implementations§
Source§impl<'db> Debug for InherentImpls<'db>
impl<'db> Debug for InherentImpls<'db>
Source§impl<'db> PartialEq for InherentImpls<'db>
impl<'db> PartialEq for InherentImpls<'db>
Source§fn eq(&self, other: &InherentImpls<'db>) -> bool
fn eq(&self, other: &InherentImpls<'db>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'db> Update for InherentImpls<'db>where
SolverDefId<'db>: Update,
impl<'db> Update for InherentImpls<'db>where
SolverDefId<'db>: Update,
impl<'db> Eq for InherentImpls<'db>
impl<'db> StructuralPartialEq for InherentImpls<'db>
Auto Trait Implementations§
impl<'db> Freeze for InherentImpls<'db>
impl<'db> RefUnwindSafe for InherentImpls<'db>
impl<'db> Send for InherentImpls<'db>
impl<'db> Sync for InherentImpls<'db>
impl<'db> Unpin for InherentImpls<'db>
impl<'db> UnsafeUnpin for InherentImpls<'db>
impl<'db> UnwindSafe for InherentImpls<'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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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