Struct syntax::codemap::NameAndSpanUnstable [-] [+] [src]

pub struct NameAndSpan {
    pub name: String,
    pub format: MacroFormat,
    pub span: Option<Span>,
}

Fields

name

The name of the macro that was invoked to create the thing with this Span.

format

The format with which the macro was invoked.

span

The span of the macro definition itself. The macro may not have a sensible definition span (e.g. something defined completely inside libsyntax) in which case this is None.

Trait Implementations

Derived Implementations

impl Debug for NameAndSpan

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for NameAndSpan

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for NameAndSpan

fn clone(&self) -> NameAndSpan

fn clone_from(&mut self, source: &Self)