Struct rustc_typeck::hir::MacroDef
[−]
[src]
pub struct MacroDef {
pub name: Name,
pub attrs: P<[Spanned<Attribute_>]>,
pub id: u32,
pub span: Span,
pub imported_from: Option<Name>,
pub export: bool,
pub use_locally: bool,
pub allow_internal_unstable: bool,
pub body: P<[TokenTree]>,
}Unstable (
rustc_private)A macro definition, in this crate or imported from another.
Not parsed directly, but created on macro import or macro_rules! expansion.
Fields
name: Name
Unstable (
rustc_private)attrs: P<[Spanned<Attribute_>]>
Unstable (
rustc_private)id: u32
Unstable (
rustc_private)span: Span
Unstable (
rustc_private)imported_from: Option<Name>
Unstable (
rustc_private)export: bool
Unstable (
rustc_private)use_locally: bool
Unstable (
rustc_private)allow_internal_unstable: bool
Unstable (
rustc_private)body: P<[TokenTree]>
Unstable (
rustc_private)Trait Implementations
Derived Implementations
impl Debug for MacroDef
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for MacroDef
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for MacroDef
impl Encodable for MacroDef
impl Eq for MacroDef
impl PartialEq<MacroDef> for MacroDef
fn eq(&self, __arg_0: &MacroDef) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &MacroDef) -> bool
This method tests for !=.
impl Clone for MacroDef
fn clone(&self) -> MacroDef
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more