Trait proc_macro_utils::TokenStreamExt
source · pub trait TokenStreamExt {
type TokenTree;
// Required method
fn push(&mut self, token: Self::TokenTree);
}
Expand description
Generic extensions for
proc_macro2::TokenStream
Required Associated Types§
Required Methods§
sourcefn push(&mut self, token: Self::TokenTree)
fn push(&mut self, token: Self::TokenTree)
Pushes a single Self::TokenTree
onto the token stream