pub enum ResolvedGenericItem {
Constant(ConstantId),
Module(ModuleId),
GenericFunction(GenericFunctionId),
TraitFunction(TraitFunctionId),
GenericType(GenericTypeId),
GenericTypeAlias(TypeAliasId),
GenericImplAlias(ImplAliasId),
Variant(Variant),
Trait(TraitId),
Impl(ImplDefId),
}
Variants§
Constant(ConstantId)
Module(ModuleId)
GenericFunction(GenericFunctionId)
TraitFunction(TraitFunctionId)
GenericType(GenericTypeId)
GenericTypeAlias(TypeAliasId)
GenericImplAlias(ImplAliasId)
Variant(Variant)
Trait(TraitId)
Impl(ImplDefId)
Implementations§
source§impl ResolvedGenericItem
impl ResolvedGenericItem
sourcepub fn from_module_item(
db: &dyn SemanticGroup,
module_item: ModuleItemId
) -> Maybe<ResolvedGenericItem>
pub fn from_module_item( db: &dyn SemanticGroup, module_item: ModuleItemId ) -> Maybe<ResolvedGenericItem>
Wraps a ModuleItem with the corresponding ResolveGenericItem.
pub fn full_path(&self, db: &dyn SemanticGroup) -> String
Trait Implementations§
source§impl Clone for ResolvedGenericItem
impl Clone for ResolvedGenericItem
source§fn clone(&self) -> ResolvedGenericItem
fn clone(&self) -> ResolvedGenericItem
Returns a copy 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 ResolvedGenericItem
impl Debug for ResolvedGenericItem
source§impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ResolvedGenericItem
impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ResolvedGenericItem
source§impl PartialEq for ResolvedGenericItem
impl PartialEq for ResolvedGenericItem
source§fn eq(&self, other: &ResolvedGenericItem) -> bool
fn eq(&self, other: &ResolvedGenericItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResolvedGenericItem
impl StructuralEq for ResolvedGenericItem
impl StructuralPartialEq for ResolvedGenericItem
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedGenericItem
impl Send for ResolvedGenericItem
impl Sync for ResolvedGenericItem
impl Unpin for ResolvedGenericItem
impl UnwindSafe for ResolvedGenericItem
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.