Struct pmutil::prelude::Span[][src]

pub struct Span { /* fields omitted */ }

A region of source code, along with macro expansion information.

Methods

impl Span
[src]

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.

This method is only available when the "nightly" feature is enabled.

Trait Implementations

impl Clone for Span
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Span
[src]

Prints a span in a form convenient for debugging.

Formats the value using the given formatter. Read more

impl Copy for Span
[src]

impl From<Span> for Span
[src]

Performs the conversion.

impl From<Span> for Shr
[src]

Performs the conversion.

impl From<Span> for Type
[src]

Performs the conversion.

impl From<Span> for Unsafe
[src]

Performs the conversion.

impl From<Span> for Colon
[src]

Performs the conversion.

impl From<Span> for Match
[src]

Performs the conversion.

impl From<Span> for AndAnd
[src]

Performs the conversion.

impl From<Span> for Or
[src]

Performs the conversion.

impl From<Span> for DivEq
[src]

Performs the conversion.

impl From<Span> for At
[src]

Performs the conversion.

impl From<Span> for Group
[src]

Performs the conversion.

impl From<Span> for RemEq
[src]

Performs the conversion.

impl From<Span> for Pound
[src]

Performs the conversion.

impl From<Span> for CaretEq
[src]

Performs the conversion.

impl From<Span> for Box
[src]

Performs the conversion.

impl From<Span> for In
[src]

Performs the conversion.

impl From<Span> for Crate
[src]

Performs the conversion.

impl From<Span> for Eq
[src]

Performs the conversion.

impl From<Span> for And
[src]

Performs the conversion.

impl From<Span> for Dot2
[src]

Performs the conversion.

impl From<Span> for Add
[src]

Performs the conversion.

impl From<Span> for Enum
[src]

Performs the conversion.

impl From<Span> for CapSelf
[src]

Performs the conversion.

impl From<Span> for Star
[src]

Performs the conversion.

impl From<Span> for As
[src]

Performs the conversion.

impl From<Span> for Brace
[src]

Performs the conversion.

impl From<Span> for Mut
[src]

Performs the conversion.

impl From<Span> for Dot
[src]

Performs the conversion.

impl From<Span> for SubEq
[src]

Performs the conversion.

impl From<Span> for AndEq
[src]

Performs the conversion.

impl From<Span> for Move
[src]

Performs the conversion.

impl From<Span> for Dyn
[src]

Performs the conversion.

impl From<Span> for DotDotEq
[src]

Performs the conversion.

impl From<Span> for Underscore
[src]

Performs the conversion.

impl From<Span> for Question
[src]

Performs the conversion.

impl From<Span> for Rem
[src]

Performs the conversion.

impl From<Span> for Sub
[src]

Performs the conversion.

impl From<Span> for Gt
[src]

Performs the conversion.

impl From<Span> for ShrEq
[src]

Performs the conversion.

impl From<Span> for Yield
[src]

Performs the conversion.

impl From<Span> for Union
[src]

Performs the conversion.

impl From<Span> for Colon2
[src]

Performs the conversion.

impl From<Span> for Ge
[src]

Performs the conversion.

impl From<Span> for Bang
[src]

Performs the conversion.

impl From<Span> for Const
[src]

Performs the conversion.

impl From<Span> for Static
[src]

Performs the conversion.

impl From<Span> for Else
[src]

Performs the conversion.

impl From<Span> for OrOr
[src]

Performs the conversion.

impl From<Span> for Paren
[src]

Performs the conversion.

impl From<Span> for EqEq
[src]

Performs the conversion.

impl From<Span> for Super
[src]

Performs the conversion.

impl From<Span> for Break
[src]

Performs the conversion.

impl From<Span> for Dollar
[src]

Performs the conversion.

impl From<Span> for Do
[src]

Performs the conversion.

impl From<Span> for FatArrow
[src]

Performs the conversion.

impl From<Span> for Impl
[src]

Performs the conversion.

impl From<Span> for ShlEq
[src]

Performs the conversion.

impl From<Span> for Semi
[src]

Performs the conversion.

impl From<Span> for Loop
[src]

Performs the conversion.

impl From<Span> for Trait
[src]

Performs the conversion.

impl From<Span> for LArrow
[src]

Performs the conversion.

impl From<Span> for Caret
[src]

Performs the conversion.

impl From<Span> for Shl
[src]

Performs the conversion.

impl From<Span> for Return
[src]

Performs the conversion.

impl From<Span> for Dot3
[src]

Performs the conversion.

impl From<Span> for Continue
[src]

Performs the conversion.

impl From<Span> for Le
[src]

Performs the conversion.

impl From<Span> for Extern
[src]

Performs the conversion.

impl From<Span> for Where
[src]

Performs the conversion.

impl From<Span> for Self_
[src]

Performs the conversion.

impl From<Span> for Comma
[src]

Performs the conversion.

impl From<Span> for Mod
[src]

Performs the conversion.

impl From<Span> for Div
[src]

Performs the conversion.

impl From<Span> for Apostrophe
[src]

Performs the conversion.

impl From<Span> for If
[src]

Performs the conversion.

impl From<Span> for Catch
[src]

Performs the conversion.

impl From<Span> for Pub
[src]

Performs the conversion.

impl From<Span> for Use
[src]

Performs the conversion.

impl From<Span> for AddEq
[src]

Performs the conversion.

impl From<Span> for For
[src]

Performs the conversion.

impl From<Span> for OrEq
[src]

Performs the conversion.

impl From<Span> for RArrow
[src]

Performs the conversion.

impl From<Span> for Default
[src]

Performs the conversion.

impl From<Span> for Ref
[src]

Performs the conversion.

impl From<Span> for Ne
[src]

Performs the conversion.

impl From<Span> for Lt
[src]

Performs the conversion.

impl From<Span> for Auto
[src]

Performs the conversion.

impl From<Span> for While
[src]

Performs the conversion.

impl From<Span> for Bracket
[src]

Performs the conversion.

impl From<Span> for Fn
[src]

Performs the conversion.

impl From<Span> for Struct
[src]

Performs the conversion.

impl From<Span> for Macro
[src]

Performs the conversion.

impl From<Span> for MulEq
[src]

Performs the conversion.

impl From<Span> for Let
[src]

Performs the conversion.

impl Respan for Span
[src]

Used while quasi quotting.

impl SpanExt for Span
[src]

Creates Token from self.

impl FromSpan for Span
[src]

Auto Trait Implementations

impl !Send for Span

impl !Sync for Span