Struct syntax::ast::MacroDef
[−]
[src]
pub struct MacroDef {
pub ident: Ident,
pub attrs: Vec<Attribute>,
pub id: NodeId,
pub span: Span,
pub imported_from: Option<Ident>,
pub export: bool,
pub use_locally: bool,
pub allow_internal_unstable: bool,
pub body: Vec<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
ident: Ident
Unstable (
rustc_private)attrs: Vec<Attribute>
Unstable (
rustc_private)id: NodeId
Unstable (
rustc_private)span: Span
Unstable (
rustc_private)imported_from: Option<Ident>
Unstable (
rustc_private)export: bool
Unstable (
rustc_private)use_locally: bool
Unstable (
rustc_private)allow_internal_unstable: bool
Unstable (
rustc_private)body: Vec<TokenTree>
Unstable (
rustc_private)Trait Implementations
Derived Implementations
impl Debug for MacroDef[src]
impl Hash for MacroDef[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
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[src]
impl Encodable for MacroDef[src]
impl Eq for MacroDef[src]
impl PartialEq for MacroDef[src]
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[src]
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