Struct ra_ap_hir_def::Macro2Id
source · pub struct Macro2Id(/* private fields */);
Trait Implementations§
source§impl From<Macro2Id> for ModuleDefId
impl From<Macro2Id> for ModuleDefId
source§fn from(it: Macro2Id) -> ModuleDefId
fn from(it: Macro2Id) -> ModuleDefId
Converts to this type from the input type.
source§impl HasModule for Macro2Id
impl HasModule for Macro2Id
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) -> CrateId
fn krate(&self, db: &dyn DefDatabase) -> CrateId
Returns the crate this thing is defined within.
source§impl HasResolver for Macro2Id
impl HasResolver for Macro2Id
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 Macro2Id
impl InternKey for Macro2Id
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 Ord for Macro2Id
impl Ord for Macro2Id
source§impl PartialEq for Macro2Id
impl PartialEq for Macro2Id
source§impl PartialOrd for Macro2Id
impl PartialOrd for Macro2Id
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Macro2Id
impl Eq for Macro2Id
impl StructuralPartialEq for Macro2Id
Auto Trait Implementations§
impl Freeze for Macro2Id
impl RefUnwindSafe for Macro2Id
impl Send for Macro2Id
impl Sync for Macro2Id
impl Unpin for Macro2Id
impl UnwindSafe for Macro2Id
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.