pub trait SpanExt: Copy {
    fn into_pm2_span(self) -> Span;

    fn new_ident<S>(self, s: S) -> Ident
    where
        S: AsRef<str>
, { ... } fn as_token<Token>(self) -> Token
    where
        Token: FromSpan
, { ... } }
Expand description

Extension trait for Span and syn::Span.

Required Methods

Provided Methods

Creates Token from self.

Implementations on Foreign Types

Implementors