Struct ra_ap_hir_def::MacroRulesLoc
source · pub struct MacroRulesLoc {
pub container: ModuleId,
pub id: ItemTreeId<MacroRules>,
pub local_inner: bool,
pub expander: MacroExpander,
}
Fields§
§container: ModuleId
§id: ItemTreeId<MacroRules>
§local_inner: bool
§expander: MacroExpander
Trait Implementations§
source§impl Clone for MacroRulesLoc
impl Clone for MacroRulesLoc
source§fn clone(&self) -> MacroRulesLoc
fn clone(&self) -> MacroRulesLoc
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 MacroRulesLoc
impl Debug for MacroRulesLoc
source§impl HasSource for MacroRulesLoc
impl HasSource for MacroRulesLoc
type Value = MacroRules
fn source(&self, db: &dyn DefDatabase) -> InFile<Self::Value>
source§impl Hash for MacroRulesLoc
impl Hash for MacroRulesLoc
source§impl PartialEq<MacroRulesLoc> for MacroRulesLoc
impl PartialEq<MacroRulesLoc> for MacroRulesLoc
source§fn eq(&self, other: &MacroRulesLoc) -> bool
fn eq(&self, other: &MacroRulesLoc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MacroRulesLoc
impl Eq for MacroRulesLoc
impl StructuralEq for MacroRulesLoc
impl StructuralPartialEq for MacroRulesLoc
Auto Trait Implementations§
impl RefUnwindSafe for MacroRulesLoc
impl Send for MacroRulesLoc
impl Sync for MacroRulesLoc
impl Unpin for MacroRulesLoc
impl UnwindSafe for MacroRulesLoc
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.