[−][src]Trait panini_common::rs::ToTokens
Types that can be interpolated inside a quote!
invocation.
Required methods
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
.
The token append methods provided by the TokenStreamExt
extension
trait may be useful for implementing ToTokens
.
Example
Example implementation for a struct representing Rust paths like
std::cmp::PartialEq
:
ⓘThis code runs with edition 2018
use proc_macro2::{TokenTree, Spacing, Span, Punct, TokenStream}; use quote::{TokenStreamExt, ToTokens}; pub struct Path { pub global: bool, pub segments: Vec<PathSegment>, } impl ToTokens for Path { fn to_tokens(&self, tokens: &mut TokenStream) { for (i, segment) in self.segments.iter().enumerate() { if i > 0 || self.global { // Double colon `::` tokens.append(Punct::new(':', Spacing::Joint)); tokens.append(Punct::new(':', Spacing::Alone)); } segment.to_tokens(tokens); } } }
Provided methods
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object.
This method is implicitly implemented using to_tokens
, and acts as a
convenience method for consumers of the ToTokens
trait.
Implementations on Foreign Types
impl ToTokens for u8
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Group
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for i8
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for str
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<T> ToTokens for Box<T> where
T: ToTokens + ?Sized,
[src]
T: ToTokens + ?Sized,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<'a, T> ToTokens for &'a mut T where
T: ToTokens + ?Sized,
[src]
T: ToTokens + ?Sized,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for i32
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for f64
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for u64
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for i64
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for bool
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for u16
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for f32
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for u32
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for char
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<T> ToTokens for Rc<T> where
T: ToTokens + ?Sized,
[src]
T: ToTokens + ?Sized,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for usize
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<'a, T> ToTokens for Cow<'a, T> where
T: ToTokens + ToOwned + ?Sized,
[src]
T: ToTokens + ToOwned + ?Sized,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for String
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<'a, T> ToTokens for &'a T where
T: ToTokens + ?Sized,
[src]
T: ToTokens + ?Sized,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<T> ToTokens for Option<T> where
T: ToTokens,
[src]
T: ToTokens,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for i16
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for isize
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeInfer
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PredicateEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for GenericParam
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemTraitAlias
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Struct
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for UseName
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for EqEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for AndEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatBox
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprLit
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitByte
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PredicateLifetime
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatVerbatim
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for For
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for VisPublic
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprClosure
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for FnArg
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprIndex
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Use
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Yield
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeNever
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitVerbatim
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Div
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ConstParam
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Fields
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Pound
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatMacro
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprLoop
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprMacro
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatTupleStruct
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemUnion
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitByteStr
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitInt
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprMatch
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for NestedMeta
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Eq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitFloat
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Final
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for BareFnArgName
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Bang
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for DotDotEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Label
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItemType
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprLet
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Continue
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for DivEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprAssignOp
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<T, P> ToTokens for Punctuated<T, P> where
P: ToTokens,
T: ToTokens,
[src]
P: ToTokens,
T: ToTokens,
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypePath
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Caret
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Item
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for WhereClause
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeTraitObject
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Priv
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeParen
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItemVerbatim
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprTryBlock
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Local
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<'a> ToTokens for Turbofish<'a>
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LifetimeDef
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Static
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Fn
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemMod
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ForeignItemFn
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PathSegment
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatRef
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeGroup
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprType
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprStruct
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<'a> ToTokens for ImplGenerics<'a>
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for In
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for BareFnArg
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprAssign
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprContinue
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Sub
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for FieldValue
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Index
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Loop
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Macro
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Else
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Const
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for SelfValue
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeTuple
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Do
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Mod
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Member
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Shr
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Super
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Constraint
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemMacro
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Box
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Or
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitItemType
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItemExistential
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Ne
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemStatic
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Type
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprBinary
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatWild
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprTuple
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ReturnType
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitItem
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LitBool
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for VisCrate
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Dot
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemForeignMod
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for AddEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Typeof
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Pub
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Semi
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprForLoop
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Extern
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Where
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatSlice
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprTry
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Mut
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for RemEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for LArrow
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprIf
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprReturn
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for FieldsNamed
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatStruct
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Dot2
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeVerbatim
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Le
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for RArrow
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprRange
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ItemType
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Auto
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for MethodSig
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprUnsafe
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprInPlace
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Block
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for File
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Impl
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Field
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItemMacro
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItem
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ForeignItem
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for At
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for BinOp
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for PatPath
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for OrOr
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ArgCaptured
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Crate
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitItemVerbatim
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for If
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Lifetime
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprField
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Path
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitItemMethod
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeParamBound
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprParen
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Gt
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Visibility
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ParenthesizedGenericArguments
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ExprBox
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Match
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for SubEq
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Star
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TypeImplTrait
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for GenericMethodArgument
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for ImplItemMethod
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitItemConst
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Question
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Move
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for TraitBoundModifier
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl ToTokens for Add
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
impl<T, P> ToTokens for Pair<T, P> where
P: ToTokens,
T: ToTokens,
[src]
P: ToTokens,
T: ToTokens,