Searched refs:TokenStream (Results 1 – 9 of 9) sorted by relevance
/linux/rust/macros/ |
H A D | lib.rs | 20 use proc_macro::TokenStream; 98 pub fn module(ts: TokenStream) -> TokenStream { 173 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { 231 pub fn concat_idents(ts: TokenStream) -> TokenStream { 295 pub fn pin_data(inner: TokenStream, item: TokenStream) 103 module(ts: TokenStream) -> TokenStream module() argument 178 vtable(attr: TokenStream, ts: TokenStream) -> TokenStream vtable() argument 221 concat_idents(ts: TokenStream) -> TokenStream concat_idents() argument 270 pin_data(inner: TokenStream, item: TokenStream) -> TokenStream pin_data() argument 297 pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream pinned_drop() argument 409 paste(input: TokenStream) -> TokenStream paste() argument 430 derive_zeroable(input: TokenStream) -> TokenStream derive_zeroable() argument [all...] |
H A D | quote.rs | 3 use proc_macro::{TokenStream, TokenTree}; 6 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() argument 10 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() argument 18 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() argument 24 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() argument 29 impl ToTokens for TokenStream { implementation 30 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() argument 50 ::proc_macro::TokenStream::from_iter(tokens) 54 let mut ts = ::proc_macro::TokenStream::new(); 61 let mut ts = ::proc_macro::TokenStream::new(); [all …]
|
H A D | pin_data.rs | 4 use proc_macro::{Group, Punct, Spacing, TokenStream, TokenTree}; 6 pub(crate) fn pin_data(args: TokenStream, input: TokenStream) -> TokenStream { in pin_data() argument 24 let mut errs = TokenStream::new(); in pin_data() 52 .parse::<TokenStream>() in pin_data() 55 "Self".parse::<TokenStream>().unwrap().into_iter().collect() in pin_data() 94 errs: &mut TokenStream, in replace_self_and_deny_type_defs() argument 109 .parse::<TokenStream>() in replace_self_and_deny_type_defs()
|
H A D | pinned_drop.rs | 3 use proc_macro::{TokenStream, TokenTree}; 5 pub(crate) fn pinned_drop(_args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop() argument 47 TokenStream::from_iter(toks) in pinned_drop()
|
H A D | concat_idents.rs | 3 use proc_macro::{token_stream, Ident, TokenStream, TokenTree}; 15 pub(crate) fn concat_idents(ts: TokenStream) -> TokenStream { in concat_idents() argument 22 TokenStream::from_iter([TokenTree::Ident(res)]) in concat_idents()
|
H A D | vtable.rs | 3 use proc_macro::{Delimiter, Group, TokenStream, TokenTree}; 7 pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable() argument
|
H A D | zeroable.rs | 4 use proc_macro::{TokenStream, TokenTree}; 6 pub(crate) fn derive(input: TokenStream) -> TokenStream { in derive() argument
|
H A D | module.rs | 4 use proc_macro::{token_stream, Delimiter, Literal, TokenStream, TokenTree}; 180 pub(crate) fn module(ts: TokenStream) -> TokenStream { in module() argument
|
H A D | helpers.rs | 3 use proc_macro::{token_stream, Group, TokenStream, TokenTree}; 113 pub(crate) fn parse_generics(input: TokenStream) -> (Generics, Vec<TokenTree>) { in parse_generics()
|