pub enum ItemContainerId {
ExternBlockId(ExternBlockId),
ModuleId(ModuleId),
ImplId(ImplId),
TraitId(TraitId),
}Variants§
Trait Implementations§
Source§impl Clone for ItemContainerId
impl Clone for ItemContainerId
Source§fn clone(&self) -> ItemContainerId
fn clone(&self) -> ItemContainerId
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 ItemContainerId
impl Debug for ItemContainerId
Source§impl From<ItemContainerId> for AttrDefId
impl From<ItemContainerId> for AttrDefId
Source§fn from(acid: ItemContainerId) -> Self
fn from(acid: ItemContainerId) -> Self
Converts to this type from the input type.
Source§impl From<ModuleId> for ItemContainerId
impl From<ModuleId> for ItemContainerId
Source§fn from(it: ModuleId) -> ItemContainerId
fn from(it: ModuleId) -> ItemContainerId
Converts to this type from the input type.
Source§impl HasModule for ItemContainerId
impl HasModule for ItemContainerId
Source§fn module(&self, db: &dyn DefDatabase) -> ModuleId
fn module(&self, db: &dyn DefDatabase) -> ModuleId
Returns the enclosing module this thing is defined within.
Source§fn krate(&self, db: &dyn DefDatabase) -> Crate
fn krate(&self, db: &dyn DefDatabase) -> Crate
Returns the crate this thing is defined within.
Source§impl HasResolver for ItemContainerId
impl HasResolver for ItemContainerId
Source§fn resolver(self, db: &dyn DefDatabase) -> Resolver<'_>
fn resolver(self, db: &dyn DefDatabase) -> Resolver<'_>
Builds a resolver for type references inside this def.
Source§impl Hash for ItemContainerId
impl Hash for ItemContainerId
Source§impl PartialEq for ItemContainerId
impl PartialEq for ItemContainerId
impl Copy for ItemContainerId
impl Eq for ItemContainerId
impl StructuralPartialEq for ItemContainerId
Auto Trait Implementations§
impl Freeze for ItemContainerId
impl RefUnwindSafe for ItemContainerId
impl Send for ItemContainerId
impl Sync for ItemContainerId
impl Unpin for ItemContainerId
impl UnwindSafe for ItemContainerId
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<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