Struct pmutil::prelude::Span [−][src]
pub struct Span { /* fields omitted */ }
A region of source code, along with macro expansion information.
Methods
impl Span
[src]
impl Span
pub fn call_site() -> Span
[src]
pub fn call_site() -> Span
The span of the invocation of the current procedural macro.
Identifiers created with this span will be resolved as if they were written directly at the macro call location (call-site hygiene) and other code at the macro call site will be able to refer to them as well.
pub fn unstable(self) -> Span
[src]
pub fn unstable(self) -> Span
This method is only available when the "nightly"
feature is enabled.
Trait Implementations
impl Clone for Span
[src]
impl Clone for Span
fn clone(&self) -> Span
[src]
fn clone(&self) -> Span
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Span
[src]
impl Debug for Span
Prints a span in a form convenient for debugging.
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for Span
[src]
impl Copy for Span
impl From<Span> for Span
[src]
impl From<Span> for Span
impl From<Span> for Shr
[src]
impl From<Span> for Shr
impl From<Span> for Type
[src]
impl From<Span> for Type
impl From<Span> for Unsafe
[src]
impl From<Span> for Unsafe
impl From<Span> for Colon
[src]
impl From<Span> for Colon
impl From<Span> for Match
[src]
impl From<Span> for Match
impl From<Span> for AndAnd
[src]
impl From<Span> for AndAnd
impl From<Span> for Or
[src]
impl From<Span> for Or
impl From<Span> for DivEq
[src]
impl From<Span> for DivEq
impl From<Span> for At
[src]
impl From<Span> for At
impl From<Span> for Group
[src]
impl From<Span> for Group
impl From<Span> for RemEq
[src]
impl From<Span> for RemEq
impl From<Span> for Pound
[src]
impl From<Span> for Pound
impl From<Span> for CaretEq
[src]
impl From<Span> for CaretEq
impl From<Span> for Box
[src]
impl From<Span> for Box
impl From<Span> for In
[src]
impl From<Span> for In
impl From<Span> for Crate
[src]
impl From<Span> for Crate
impl From<Span> for Eq
[src]
impl From<Span> for Eq
impl From<Span> for And
[src]
impl From<Span> for And
impl From<Span> for Dot2
[src]
impl From<Span> for Dot2
impl From<Span> for Add
[src]
impl From<Span> for Add
impl From<Span> for Enum
[src]
impl From<Span> for Enum
impl From<Span> for CapSelf
[src]
impl From<Span> for CapSelf
impl From<Span> for Star
[src]
impl From<Span> for Star
impl From<Span> for As
[src]
impl From<Span> for As
impl From<Span> for Brace
[src]
impl From<Span> for Brace
impl From<Span> for Mut
[src]
impl From<Span> for Mut
impl From<Span> for Dot
[src]
impl From<Span> for Dot
impl From<Span> for SubEq
[src]
impl From<Span> for SubEq
impl From<Span> for AndEq
[src]
impl From<Span> for AndEq
impl From<Span> for Move
[src]
impl From<Span> for Move
impl From<Span> for Dyn
[src]
impl From<Span> for Dyn
impl From<Span> for DotDotEq
[src]
impl From<Span> for DotDotEq
impl From<Span> for Underscore
[src]
impl From<Span> for Underscore
fn from(span: Span) -> Underscore
[src]
fn from(span: Span) -> Underscore
Performs the conversion.
impl From<Span> for Question
[src]
impl From<Span> for Question
impl From<Span> for Rem
[src]
impl From<Span> for Rem
impl From<Span> for Sub
[src]
impl From<Span> for Sub
impl From<Span> for Gt
[src]
impl From<Span> for Gt
impl From<Span> for ShrEq
[src]
impl From<Span> for ShrEq
impl From<Span> for Yield
[src]
impl From<Span> for Yield
impl From<Span> for Union
[src]
impl From<Span> for Union
impl From<Span> for Colon2
[src]
impl From<Span> for Colon2
impl From<Span> for Ge
[src]
impl From<Span> for Ge
impl From<Span> for Bang
[src]
impl From<Span> for Bang
impl From<Span> for Const
[src]
impl From<Span> for Const
impl From<Span> for Static
[src]
impl From<Span> for Static
impl From<Span> for Else
[src]
impl From<Span> for Else
impl From<Span> for OrOr
[src]
impl From<Span> for OrOr
impl From<Span> for Paren
[src]
impl From<Span> for Paren
impl From<Span> for EqEq
[src]
impl From<Span> for EqEq
impl From<Span> for Super
[src]
impl From<Span> for Super
impl From<Span> for Break
[src]
impl From<Span> for Break
impl From<Span> for Dollar
[src]
impl From<Span> for Dollar
impl From<Span> for Do
[src]
impl From<Span> for Do
impl From<Span> for FatArrow
[src]
impl From<Span> for FatArrow
impl From<Span> for Impl
[src]
impl From<Span> for Impl
impl From<Span> for ShlEq
[src]
impl From<Span> for ShlEq
impl From<Span> for Semi
[src]
impl From<Span> for Semi
impl From<Span> for Loop
[src]
impl From<Span> for Loop
impl From<Span> for Trait
[src]
impl From<Span> for Trait
impl From<Span> for LArrow
[src]
impl From<Span> for LArrow
impl From<Span> for Caret
[src]
impl From<Span> for Caret
impl From<Span> for Shl
[src]
impl From<Span> for Shl
impl From<Span> for Return
[src]
impl From<Span> for Return
impl From<Span> for Dot3
[src]
impl From<Span> for Dot3
impl From<Span> for Continue
[src]
impl From<Span> for Continue
impl From<Span> for Le
[src]
impl From<Span> for Le
impl From<Span> for Extern
[src]
impl From<Span> for Extern
impl From<Span> for Where
[src]
impl From<Span> for Where
impl From<Span> for Self_
[src]
impl From<Span> for Self_
impl From<Span> for Comma
[src]
impl From<Span> for Comma
impl From<Span> for Mod
[src]
impl From<Span> for Mod
impl From<Span> for Div
[src]
impl From<Span> for Div
impl From<Span> for Apostrophe
[src]
impl From<Span> for Apostrophe
fn from(span: Span) -> Apostrophe
[src]
fn from(span: Span) -> Apostrophe
Performs the conversion.
impl From<Span> for If
[src]
impl From<Span> for If
impl From<Span> for Catch
[src]
impl From<Span> for Catch
impl From<Span> for Pub
[src]
impl From<Span> for Pub
impl From<Span> for Use
[src]
impl From<Span> for Use
impl From<Span> for AddEq
[src]
impl From<Span> for AddEq
impl From<Span> for For
[src]
impl From<Span> for For
impl From<Span> for OrEq
[src]
impl From<Span> for OrEq
impl From<Span> for RArrow
[src]
impl From<Span> for RArrow
impl From<Span> for Default
[src]
impl From<Span> for Default
impl From<Span> for Ref
[src]
impl From<Span> for Ref
impl From<Span> for Ne
[src]
impl From<Span> for Ne
impl From<Span> for Lt
[src]
impl From<Span> for Lt
impl From<Span> for Auto
[src]
impl From<Span> for Auto
impl From<Span> for While
[src]
impl From<Span> for While
impl From<Span> for Bracket
[src]
impl From<Span> for Bracket
impl From<Span> for Fn
[src]
impl From<Span> for Fn
impl From<Span> for Struct
[src]
impl From<Span> for Struct
impl From<Span> for Macro
[src]
impl From<Span> for Macro
impl From<Span> for MulEq
[src]
impl From<Span> for MulEq
impl From<Span> for Let
[src]
impl From<Span> for Let
impl Respan for Span
[src]
impl Respan for Span
fn next_span(&self) -> Span
[src]
fn next_span(&self) -> Span
Used while quasi quotting.
fn respan(&self, tt: TokenTree) -> TokenTree
[src]
fn respan(&self, tt: TokenTree) -> TokenTree
impl SpanExt for Span
[src]
impl SpanExt for Span
fn into_pm2_span(self) -> Self
[src]
fn into_pm2_span(self) -> Self
fn new_ident<S>(self, s: S) -> Ident where
S: AsRef<str>,
[src]
fn new_ident<S>(self, s: S) -> Ident where
S: AsRef<str>,
fn as_token<Token>(self) -> Token where
Token: FromSpan,
[src]
fn as_token<Token>(self) -> Token where
Token: FromSpan,
Creates Token
from self
.
impl FromSpan for Span
[src]
impl FromSpan for Span