Struct proc_macro2::Span
[−]
[src]
pub struct Span(_);
Methods
impl Span[src]
fn call_site() -> Span[src]
fn def_site() -> Span[src]
fn resolved_at(&self, other: Span) -> Span[src]
Creates a new span with the same line/column information as self but
that resolves symbols as though it were at other.
fn located_at(&self, other: Span) -> Span[src]
Creates a new span with the same name resolution behavior as self but
with the line/column information of other.
Trait Implementations
impl Copy for Span[src]
impl Clone for Span[src]
fn clone(&self) -> Span[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more