Struct hir_def::data::Macro2Data
source · pub struct Macro2Data {
pub name: Name,
pub visibility: RawVisibility,
pub helpers: Option<Box<[Name]>>,
}
Fields§
§name: Name
§visibility: RawVisibility
§helpers: Option<Box<[Name]>>
Derive helpers, if this is a derive rustc_builtin_macro
Trait Implementations§
source§impl Clone for Macro2Data
impl Clone for Macro2Data
source§fn clone(&self) -> Macro2Data
fn clone(&self) -> Macro2Data
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 Macro2Data
impl Debug for Macro2Data
source§impl PartialEq for Macro2Data
impl PartialEq for Macro2Data
source§fn eq(&self, other: &Macro2Data) -> bool
fn eq(&self, other: &Macro2Data) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Macro2Data
impl StructuralPartialEq for Macro2Data
Auto Trait Implementations§
impl Freeze for Macro2Data
impl RefUnwindSafe for Macro2Data
impl Send for Macro2Data
impl Sync for Macro2Data
impl Unpin for Macro2Data
impl UnwindSafe for Macro2Data
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.