pub enum MacroId {
Macro2Id(Macro2Id),
MacroRulesId(MacroRulesId),
ProcMacroId(ProcMacroId),
}
Expand description
A macro
Variants§
Implementations§
source§impl MacroId
impl MacroId
pub fn is_attribute(self, db: &dyn DefDatabase) -> bool
Trait Implementations§
source§impl From<MacroId> for ModuleDefId
impl From<MacroId> for ModuleDefId
source§fn from(it: MacroId) -> ModuleDefId
fn from(it: MacroId) -> ModuleDefId
Converts to this type from the input type.
source§impl From<MacroRulesId> for MacroId
impl From<MacroRulesId> for MacroId
source§fn from(it: MacroRulesId) -> MacroId
fn from(it: MacroRulesId) -> MacroId
Converts to this type from the input type.
source§impl From<ProcMacroId> for MacroId
impl From<ProcMacroId> for MacroId
source§fn from(it: ProcMacroId) -> MacroId
fn from(it: ProcMacroId) -> MacroId
Converts to this type from the input type.
source§impl HasResolver for MacroId
impl HasResolver for MacroId
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 Ord for MacroId
impl Ord for MacroId
source§impl PartialEq for MacroId
impl PartialEq for MacroId
source§impl PartialOrd for MacroId
impl PartialOrd for MacroId
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 MacroId
impl Eq for MacroId
impl StructuralPartialEq for MacroId
Auto Trait Implementations§
impl Freeze for MacroId
impl RefUnwindSafe for MacroId
impl Send for MacroId
impl Sync for MacroId
impl Unpin for MacroId
impl UnwindSafe for MacroId
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.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.