Struct ra_ap_hir_def::StaticId
source · pub struct StaticId(_);
Trait Implementations§
source§impl From<StaticId> for DefWithBodyId
impl From<StaticId> for DefWithBodyId
source§fn from(it: StaticId) -> DefWithBodyId
fn from(it: StaticId) -> DefWithBodyId
Converts to this type from the input type.
source§impl From<StaticId> for ModuleDefId
impl From<StaticId> for ModuleDefId
source§fn from(it: StaticId) -> ModuleDefId
fn from(it: StaticId) -> ModuleDefId
Converts to this type from the input type.
source§impl HasResolver for StaticId
impl HasResolver for StaticId
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 InternKey for StaticId
impl InternKey for StaticId
source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32
value.source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.source§impl Lookup for StaticId
impl Lookup for StaticId
type Data = AssocItemLoc<Static>
fn lookup(&self, db: &dyn DefDatabase) -> StaticLoc
source§impl PartialEq<StaticId> for StaticId
impl PartialEq<StaticId> for StaticId
impl Copy for StaticId
impl Eq for StaticId
impl StructuralEq for StaticId
impl StructuralPartialEq for StaticId
Auto Trait Implementations§
impl RefUnwindSafe for StaticId
impl Send for StaticId
impl Sync for StaticId
impl Unpin for StaticId
impl UnwindSafe for StaticId
Blanket Implementations§
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.