Skip to main content

IntoTokens

Trait IntoTokens 

Source
pub trait IntoTokens: IntoTokens {
    // Required methods
    fn into_tokens(self, tokens: &mut TokenStream);
    fn into_token_stream(self) -> TokenStream;
    fn into_tokens2(self, tokens: &mut TokenStream2);
    fn into_token_stream2(self) -> TokenStream2;
}
Expand description

Into token stream.

This trait is sealed and all methods are provided.

Required Methods§

Source

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source

fn into_tokens2(self, tokens: &mut TokenStream2)

Available on crate feature proc-macro2 only.
Source

fn into_token_stream2(self) -> TokenStream2

Available on crate feature proc-macro2 only.

Implementations on Foreign Types§

Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TokenStream

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

fn into_tokens(self, ts: &mut TokenStream)

Source§

fn into_token_stream(self) -> TokenStream

Source§

fn into_tokens2(self, ts: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl IntoTokens for TT

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

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl IntoTokens for TokenStream

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

fn into_tokens(self, ts: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, ts: &mut TokenStream)

Source§

fn into_token_stream2(self) -> TokenStream

Source§

impl<T: IntoTokens> IntoTokens for Option<T>

Source§

fn into_tokens(self, ts: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, ts: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl<T: ?Sized + IntoTokens> IntoTokens for Box<T>

Available on crate feature alloc only.
Source§

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.
Source§

impl<T: ?Sized + ToTokens> IntoTokens for &T

Source§

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream2)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream2

Available on crate feature proc-macro2 only.
Source§

impl<T: ?Sized + ToTokens> IntoTokens for Rc<T>

Available on crate feature alloc only.
Source§

fn into_tokens(self, tokens: &mut TokenStream)

Available on crate feature proc-macro only.
Source§

fn into_token_stream(self) -> TokenStream

Available on crate feature proc-macro only.
Source§

fn into_tokens2(self, tokens: &mut TokenStream)

Available on crate feature proc-macro2 only.
Source§

fn into_token_stream2(self) -> TokenStream

Available on crate feature proc-macro2 only.

Implementors§

Source§

impl IntoTokens for Never

Source§

impl IntoTokens for Empty

Source§

impl<'a, S: MaybeSpan> IntoTokens for Ident<'a, S>

Source§

impl<'a, S: MaybeSpan> IntoTokens for Lifetime<'a, S>

Source§

impl<'a, S: MaybeSpan> IntoTokens for Literal<'a, S>

Source§

impl<A: IntoTokens + WithSpan, B: IntoTokens + WithSpan, S: Span> IntoTokens for ConcatWithDefaultSpan<A, B, S>

Source§

impl<A: IntoTokens + WithSpan, B: IntoTokens + WithSpan, S: Span> IntoTokens for ConcatWithReplacedSpan<A, B, S>

Source§

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

Source§

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

Source§

impl<I: IntoIterator<Item: IntoTokens + WithSpan>, S: Span> IntoTokens for IterTokensWithDefaultSpan<I, S>

Source§

impl<I: IntoIterator<Item: IntoTokens + WithSpan>, S: Span> IntoTokens for IterTokensWithReplacedSpan<I, S>

Source§

impl<I: IntoIterator<Item: IntoTokens>> IntoTokens for IterTokens<I>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Add<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::And<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::At<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Bang<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Caret<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Colon<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Comma<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Div<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Dollar<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Dot<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Eq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Gt<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Lt<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Or<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Pound<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Question<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Rem<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Semi<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Star<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Sub<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::punct::Tilde<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::AddEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::AndAnd<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::AndEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::CaretEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Colon2<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::DivEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Dot2<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Dot3<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::DotDotEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::EqEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::FatArrow<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Ge<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::LArrow<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Le<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::MulEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Ne<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::OrEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::OrOr<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::RArrow<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::RemEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Shl<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::ShlEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::Shr<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::ShrEq<S>

Source§

impl<S: MaybeSpan> IntoTokens for typed_quote::tokens::puncts::SubEq<S>

Source§

impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokens for ConstIdent<T, S>

Source§

impl<T: HasConstLifetime + ?Sized, S: MaybeSpan> IntoTokens for ConstLifetime<T, S>

Source§

impl<T: HasConstLiteral + ?Sized, S: MaybeSpan> IntoTokens for ConstLiteral<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokens for typed_quote::tokens::Brace<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokens for typed_quote::tokens::Bracket<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokens for typed_quote::tokens::Parenthesis<T, S>