Home
last modified time | relevance | path

Searched refs:TokenStream (Results 1 – 9 of 9) sorted by relevance

/rust/macros/
Dlib.rs16 use proc_macro::TokenStream;
66 pub fn module(ts: TokenStream) -> TokenStream { in module() argument
117 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable() argument
160 pub fn concat_idents(ts: TokenStream) -> TokenStream { in concat_idents() argument
209 pub fn pin_data(inner: TokenStream, item: TokenStream) -> TokenStream { in pin_data() argument
236 pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop() argument
330 pub fn paste(input: TokenStream) -> TokenStream { in paste() argument
351 pub fn derive_zeroable(input: TokenStream) -> TokenStream { in derive_zeroable() argument
Dpin_data.rs4 use proc_macro::{Group, Punct, Spacing, TokenStream, TokenTree};
6 pub(crate) fn pin_data(args: TokenStream, input: TokenStream) -> TokenStream { in pin_data() argument
23 let mut errs = TokenStream::new(); in pin_data()
51 .parse::<TokenStream>() in pin_data()
54 "Self".parse::<TokenStream>().unwrap().into_iter().collect() in pin_data()
92 errs: &mut TokenStream, in replace_self_and_deny_type_defs() argument
107 .parse::<TokenStream>() in replace_self_and_deny_type_defs()
Dquote.rs3 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 …]
Dpinned_drop.rs3 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()
Dconcat_idents.rs3 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()
Dvtable.rs3 use proc_macro::{Delimiter, Group, TokenStream, TokenTree};
7 pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable() argument
Dzeroable.rs4 use proc_macro::{TokenStream, TokenTree};
6 pub(crate) fn derive(input: TokenStream) -> TokenStream { in derive() argument
Dmodule.rs4 use proc_macro::{token_stream, Delimiter, Literal, TokenStream, TokenTree};
171 pub(crate) fn module(ts: TokenStream) -> TokenStream { in module() argument
Dhelpers.rs3 use proc_macro::{token_stream, Group, Punct, Spacing, TokenStream, TokenTree};
81 pub(crate) fn parse_generics(input: TokenStream) -> (Generics, Vec<TokenTree>) { in parse_generics()