pub(crate) enum ChildContainer {
DefWithBodyId(DefWithBodyId),
ModuleId(ModuleId),
TraitId(TraitId),
ImplId(ImplId),
EnumId(EnumId),
VariantId(VariantId),
GenericDefId(GenericDefId),
}Variants§
DefWithBodyId(DefWithBodyId)
ModuleId(ModuleId)
TraitId(TraitId)
ImplId(ImplId)
EnumId(EnumId)
VariantId(VariantId)
GenericDefId(GenericDefId)
XXX: this might be the same def as, for example an EnumId. However,
here the children are generic parameters, and not, eg enum variants.
Implementations§
Source§impl ChildContainer
impl ChildContainer
fn child_by_source(self, db: &dyn HirDatabase, file_id: HirFileId) -> DynMap
pub(crate) fn as_expression_store_owner(self) -> Option<ExpressionStoreOwnerId>
Trait Implementations§
Source§impl Clone for ChildContainer
impl Clone for ChildContainer
Source§fn clone(&self) -> ChildContainer
fn clone(&self) -> ChildContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildContainer
impl Debug for ChildContainer
Source§impl From<DefWithBodyId> for ChildContainer
impl From<DefWithBodyId> for ChildContainer
Source§fn from(it: DefWithBodyId) -> ChildContainer
fn from(it: DefWithBodyId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<EnumId> for ChildContainer
impl From<EnumId> for ChildContainer
Source§fn from(it: EnumId) -> ChildContainer
fn from(it: EnumId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<GenericDefId> for ChildContainer
impl From<GenericDefId> for ChildContainer
Source§fn from(it: GenericDefId) -> ChildContainer
fn from(it: GenericDefId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<ImplId> for ChildContainer
impl From<ImplId> for ChildContainer
Source§fn from(it: ImplId) -> ChildContainer
fn from(it: ImplId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<ModuleIdLt<'static>> for ChildContainer
impl From<ModuleIdLt<'static>> for ChildContainer
Source§fn from(it: ModuleId) -> ChildContainer
fn from(it: ModuleId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<TraitId> for ChildContainer
impl From<TraitId> for ChildContainer
Source§fn from(it: TraitId) -> ChildContainer
fn from(it: TraitId) -> ChildContainer
Converts to this type from the input type.
Source§impl From<VariantId> for ChildContainer
impl From<VariantId> for ChildContainer
Source§fn from(it: VariantId) -> ChildContainer
fn from(it: VariantId) -> ChildContainer
Converts to this type from the input type.
Source§impl Hash for ChildContainer
impl Hash for ChildContainer
Source§impl PartialEq for ChildContainer
impl PartialEq for ChildContainer
impl Copy for ChildContainer
impl Eq for ChildContainer
impl StructuralPartialEq for ChildContainer
Auto Trait Implementations§
impl Freeze for ChildContainer
impl RefUnwindSafe for ChildContainer
impl Send for ChildContainer
impl Sync for ChildContainer
impl Unpin for ChildContainer
impl UnwindSafe for ChildContainer
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,
§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
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
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<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