Skip to main content

RefWithSpan

Trait RefWithSpan 

Source
pub trait RefWithSpan:
    WithSpan
    + ToTokens
    + RefWithSpan {
    type RefWithDefaultSpan<'a, S: Span>: ToTokens + Copy + RefWithSpan
       where Self: 'a;
    type RefWithReplacedSpan<'a, S: Span>: ToTokens + Copy + RefWithSpan
       where Self: 'a;

    // Required methods
    fn ref_with_default_span<S: Span>(
        &self,
        span: S,
    ) -> Self::RefWithDefaultSpan<'_, S>;
    fn ref_with_replaced_span<S: Span>(
        &self,
        span: S,
    ) -> Self::RefWithReplacedSpan<'_, S>;
}
Expand description

To tokens with new span.

This trait is sealed and all methods are provided.

Required Associated Types§

Source

type RefWithDefaultSpan<'a, S: Span>: ToTokens + Copy + RefWithSpan where Self: 'a

Source

type RefWithReplacedSpan<'a, S: Span>: ToTokens + Copy + RefWithSpan where Self: 'a

Required Methods§

Source

fn ref_with_default_span<S: Span>( &self, span: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a TokenTree where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, TokenTree, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a TokenTree where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, TokenTree, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Group where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Group, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Ident where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Ident, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Literal where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Literal, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Punct where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Punct, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TokenStream

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a TokenStream where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, TokenStream, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Group where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Group, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Ident where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Ident, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Literal where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Literal, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a Punct where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, Punct, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl RefWithSpan for TokenStream

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

type RefWithDefaultSpan<'a, S: Span> = &'a TokenStream where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ReplaceSpanOfRef<'a, TokenStream, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, _: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl<'this, T: ?Sized + RefWithSpan> RefWithSpan for &'this T

Source§

type RefWithDefaultSpan<'a, S: Span> = <T as RefWithSpan>::RefWithDefaultSpan<'this, S> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = <T as RefWithSpan>::RefWithReplacedSpan<'this, S> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, span: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Source§

impl<T: RefWithSpan> RefWithSpan for Option<T>

Source§

type RefWithDefaultSpan<'a, S: Span> = Option<<T as RefWithSpan>::RefWithDefaultSpan<'a, S>> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Option<<T as RefWithSpan>::RefWithReplacedSpan<'a, S>> where Self: 'a

Source§

fn ref_with_default_span<S: Span>( &self, span: S, ) -> Self::RefWithDefaultSpan<'_, S>

Source§

fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>

Implementors§

Source§

impl RefWithSpan for Never

Source§

type RefWithDefaultSpan<'a, S: Span> = Never where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Never where Self: 'a

Source§

impl RefWithSpan for Empty

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Empty as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Empty as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<'a, SO: MaybeSpan> RefWithSpan for Ident<'a, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Ident<'a, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Ident<'a, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<'a, SO: MaybeSpan> RefWithSpan for Lifetime<'a, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Lifetime<'a, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Lifetime<'a, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<'a, SO: MaybeSpan> RefWithSpan for Literal<'a, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Literal<'a, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Literal<'a, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<A: RefWithSpan, B: RefWithSpan> RefWithSpan for Either<A, B>

Source§

type RefWithDefaultSpan<'a, S: Span> = Either<<A as RefWithSpan>::RefWithDefaultSpan<'a, S>, <B as RefWithSpan>::RefWithDefaultSpan<'a, S>> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Either<<A as RefWithSpan>::RefWithReplacedSpan<'a, S>, <B as RefWithSpan>::RefWithReplacedSpan<'a, S>> where Self: 'a

Source§

impl<A: RefWithSpan, B: RefWithSpan> RefWithSpan for Concat<A, B>

Source§

impl<A: RefWithSpan, B: RefWithSpan, SO: Span> RefWithSpan for ConcatWithDefaultSpan<A, B, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = &'a ConcatWithDefaultSpan<A, B, SO> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ConcatWithReplacedSpan<&'a A, &'a B, S> where Self: 'a

Source§

impl<A: RefWithSpan, B: RefWithSpan, SO: Span> RefWithSpan for ConcatWithReplacedSpan<A, B, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = &'a ConcatWithReplacedSpan<A, B, SO> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = ConcatWithReplacedSpan<&'a A, &'a B, S> where Self: 'a

Source§

impl<I: IntoIterator<Item: IntoTokens + WithSpan> + Clone> RefWithSpan for IterTokens<I>

Source§

type RefWithDefaultSpan<'a, S: Span> = IterTokensWithDefaultSpan<CloneIntoIter<'a, I>, S> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = IterTokensWithReplacedSpan<CloneIntoIter<'a, I>, S> where Self: 'a

Source§

impl<I: IntoIterator<Item: IntoTokens + WithSpan> + Clone, SO: Span> RefWithSpan for IterTokensWithDefaultSpan<I, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = &'a IterTokensWithDefaultSpan<I, SO> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = IterTokensWithReplacedSpan<CloneIntoIter<'a, I>, S> where Self: 'a

Source§

impl<I: IntoIterator<Item: IntoTokens + WithSpan> + Clone, SO: Span> RefWithSpan for IterTokensWithReplacedSpan<I, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = &'a IterTokensWithReplacedSpan<I, SO> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = IterTokensWithReplacedSpan<CloneIntoIter<'a, I>, S> where Self: 'a

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Add<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Add<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Add<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::And<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <And<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <And<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::At<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <At<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <At<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Bang<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Bang<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Bang<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Caret<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Caret<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Caret<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Colon<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Colon<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Colon<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Comma<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Comma<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Comma<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Div<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Div<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Div<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Dollar<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Dollar<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Dollar<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Dot<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Dot<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Dot<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Eq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Eq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Eq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Gt<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Gt<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Gt<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Lt<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Lt<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Lt<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Or<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Or<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Or<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Pound<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Pound<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Pound<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Question<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Question<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Question<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Rem<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Rem<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Rem<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Semi<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Semi<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Semi<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Star<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Star<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Star<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Sub<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Sub<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Sub<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::punct::Tilde<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Tilde<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Tilde<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::AddEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <AddEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <AddEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::AndAnd<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <AndAnd<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <AndAnd<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::AndEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <AndEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <AndEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::CaretEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <CaretEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <CaretEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Colon2<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Colon2<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Colon2<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::DivEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <DivEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <DivEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Dot2<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Dot2<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Dot2<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Dot3<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Dot3<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Dot3<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::DotDotEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <DotDotEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <DotDotEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::EqEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <EqEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <EqEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::FatArrow<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <FatArrow<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <FatArrow<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Ge<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Ge<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Ge<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::LArrow<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <LArrow<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <LArrow<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Le<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Le<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Le<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::MulEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <MulEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <MulEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Ne<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Ne<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Ne<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::OrEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <OrEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <OrEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::OrOr<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <OrOr<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <OrOr<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::RArrow<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <RArrow<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <RArrow<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::RemEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <RemEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <RemEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Shl<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Shl<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Shl<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::ShlEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <ShlEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <ShlEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::Shr<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <Shr<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <Shr<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::ShrEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <ShrEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <ShrEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<SO: MaybeSpan> RefWithSpan for typed_quote::tokens::puncts::SubEq<SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <SubEq<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <SubEq<SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<T: HasConstIdent + ?Sized, SO: MaybeSpan> RefWithSpan for ConstIdent<T, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <ConstIdent<T, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <ConstIdent<T, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<T: HasConstLifetime + ?Sized, SO: MaybeSpan> RefWithSpan for ConstLifetime<T, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <ConstLifetime<T, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <ConstLifetime<T, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<T: HasConstLiteral + ?Sized, SO: MaybeSpan> RefWithSpan for ConstLiteral<T, SO>

Source§

type RefWithDefaultSpan<'ref_with_span, S: Span> = <ConstLiteral<T, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span

Source§

type RefWithReplacedSpan<'ref_with_span, S: Span> = <ConstLiteral<T, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span

Source§

impl<T: IntoTokens + RefWithSpan, SO: MaybeSpan> RefWithSpan for typed_quote::tokens::Brace<T, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = Brace<<T as RefWithSpan>::RefWithDefaultSpan<'a, S>, <SO as MaybeSpan>::WithDefaultSpan<S>> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Brace<<T as RefWithSpan>::RefWithReplacedSpan<'a, S>, <SO as MaybeSpan>::WithReplacedSpan<S>> where Self: 'a

Source§

impl<T: IntoTokens + RefWithSpan, SO: MaybeSpan> RefWithSpan for typed_quote::tokens::Bracket<T, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = Bracket<<T as RefWithSpan>::RefWithDefaultSpan<'a, S>, <SO as MaybeSpan>::WithDefaultSpan<S>> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Bracket<<T as RefWithSpan>::RefWithReplacedSpan<'a, S>, <SO as MaybeSpan>::WithReplacedSpan<S>> where Self: 'a

Source§

impl<T: IntoTokens + RefWithSpan, SO: MaybeSpan> RefWithSpan for typed_quote::tokens::Parenthesis<T, SO>

Source§

type RefWithDefaultSpan<'a, S: Span> = Parenthesis<<T as RefWithSpan>::RefWithDefaultSpan<'a, S>, <SO as MaybeSpan>::WithDefaultSpan<S>> where Self: 'a

Source§

type RefWithReplacedSpan<'a, S: Span> = Parenthesis<<T as RefWithSpan>::RefWithReplacedSpan<'a, S>, <SO as MaybeSpan>::WithReplacedSpan<S>> where Self: 'a