| /linux/rust/quote/ |
| H A D | to_tokens.rs | 52 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() 58 fn to_token_stream(&self) -> TokenStream { in to_token_stream() 77 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 83 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 89 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 95 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 101 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 107 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 115 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 121 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | runtime.rs | 20 pub type TokenStream = proc_macro2::TokenStream; typedef 189 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 252 pub fn push_group(tokens: &mut TokenStream, delimiter: Delimiter, inner: TokenStream) { in push_group() 258 tokens: &mut TokenStream, in push_group_spanned() 261 inner: TokenStream, in push_group_spanned() 269 pub fn parse(tokens: &mut TokenStream, s: &str) { in parse() 275 pub fn parse_spanned(tokens: &mut TokenStream, span: Span, s: &str) { in parse_spanned() 298 pub fn push_ident(tokens: &mut TokenStream, s: &str) { in push_ident() 304 pub fn push_ident_spanned(tokens: &mut TokenStream, span: Span, s: &str) { in push_ident_spanned() 309 pub fn push_lifetime(tokens: &mut TokenStream, lifetime: &str) { in push_lifetime() [all …]
|
| /linux/rust/macros/ |
| H A D | lib.rs | 134 module(ts: TokenStream) -> TokenStream module() argument 209 vtable(attr: TokenStream, ts: TokenStream) -> TokenStream vtable() argument 232 export(attr: TokenStream, ts: TokenStream) -> TokenStream export() argument 250 fmt(input: TokenStream) -> TokenStream fmt() argument 308 concat_idents(ts: TokenStream) -> TokenStream concat_idents() argument 446 paste(input: TokenStream) -> TokenStream paste() argument 475 kunit_tests(attr: TokenStream, ts: TokenStream) -> TokenStream kunit_tests() argument [all...] |
| H A D | quote.rs | |
| H A D | pin_data.rs | |
| /linux/rust/pin-init/internal/src/ |
| H A D | lib.rs | 37 pin_data(inner: TokenStream, item: TokenStream) -> TokenStream pin_data() argument 42 pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream pinned_drop() argument 47 derive_zeroable(input: TokenStream) -> TokenStream derive_zeroable() argument 52 maybe_derive_zeroable(input: TokenStream) -> TokenStream maybe_derive_zeroable() argument [all...] |
| H A D | zeroable.rs | 10 parse_zeroable_derive_input( input: TokenStream, ) -> ( Vec<TokenTree>, Vec<TokenTree>, Vec<TokenTree>, Option<TokenTree>, ) parse_zeroable_derive_input() argument 77 derive(input: TokenStream) -> TokenStream derive() argument 90 maybe_derive(input: TokenStream) -> TokenStream maybe_derive() argument
|
| /linux/rust/zerocopy-derive/ |
| H A D | lib.rs | 103 fn into_ts(self) -> proc_macro2::TokenStream; in into_ts() 106 impl IntoTokenStream for proc_macro2::TokenStream { implementation 107 fn into_ts(self) -> proc_macro2::TokenStream { in into_ts() 113 fn into_ts(self) -> proc_macro2::TokenStream { in into_ts() 134 pub fn most_traits(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in most_traits() 170 pub fn derive_from_zeroes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_from_zeroes() 178 pub fn derive_as_bytes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_as_bytes()
|
| H A D | util.rs | 106 pub(crate) fn core_path(&self) -> TokenStream { in core_path() 111 pub(crate) fn cfg_compile_error(&self) -> TokenStream { in cfg_compile_error() 137 pub(crate) fn error_or_skip<E>(&self, error: E) -> Result<TokenStream, E> { in error_or_skip() 155 fn fields(&self) -> Vec<(&Visibility, TokenStream, &Type)>; in fields() argument 157 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)>; in variants() argument 163 fn fields(&self) -> Vec<(&Visibility, TokenStream, &Type)> { in fields() argument 171 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() argument 189 fn fields(&self) -> Vec<(&Visibility, TokenStream, &Type)> { in fields() argument 193 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() argument 203 fn fields(&self) -> Vec<(&Visibility, TokenStream, &Type)> { in fields() argument [all …]
|
| /linux/rust/zerocopy-derive/derive/ |
| H A D | from_bytes.rs | 91 pub(crate) fn derive_from_zeros(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_from_zeros() 100 pub(crate) fn derive_from_bytes(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_from_bytes() 110 fn derive_from_zeros_struct(ctx: &Ctx, strct: &DataStruct) -> TokenStream { in derive_from_zeros_struct() 113 fn derive_from_zeros_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_from_zeros_enum() 165 fn derive_from_zeros_union(ctx: &Ctx, unn: &DataUnion) -> TokenStream { in derive_from_zeros_union() 169 fn derive_from_bytes_struct(ctx: &Ctx, strct: &DataStruct) -> TokenStream { in derive_from_bytes_struct() 172 fn derive_from_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_from_bytes_enum() 189 fn derive_from_bytes_union(ctx: &Ctx, unn: &DataUnion) -> TokenStream { in derive_from_bytes_union()
|
| H A D | try_from_bytes.rs | 32 fn generate_tag_consts(data: &DataEnum) -> TokenStream { in generate_tag_consts() 78 fn generate_variant_structs(ctx: &Ctx, data: &DataEnum) -> TokenStream { in generate_variant_structs() 133 fn generate_variants_union(ctx: &Ctx, data: &DataEnum) -> TokenStream { in generate_variants_union() 201 ) -> Result<TokenStream, Error> { in derive_is_bit_valid() 446 pub(crate) fn derive_try_from_bytes(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_try_from_bytes() 453 fn derive_has_field_struct_union(ctx: &Ctx, data: &dyn DataExt) -> TokenStream { in derive_has_field_struct_union() 566 ) -> Result<TokenStream, Error> { in derive_try_from_bytes_struct() 602 fn derive_try_from_bytes_union(ctx: &Ctx, unn: &DataUnion, top_level: Trait) -> TokenStream { in derive_try_from_bytes_union() 668 ) -> Result<TokenStream, Error> { in derive_try_from_bytes_enum() 697 fn try_gen_trivial_is_bit_valid(ctx: &Ctx, top_level: Trait) -> Option<proc_macro2::TokenStream> { in try_gen_trivial_is_bit_valid() [all …]
|
| H A D | unaligned.rs | 11 pub(crate) fn derive_unaligned(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_unaligned() 24 fn derive_unaligned_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> { in derive_unaligned_struct() 45 fn derive_unaligned_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_unaligned_enum() 64 fn derive_unaligned_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> { in derive_unaligned_union()
|
| H A D | into_bytes.rs | 14 pub(crate) fn derive_into_bytes(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_into_bytes() 21 fn derive_into_bytes_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> { in derive_into_bytes_struct() 101 fn derive_into_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_into_bytes_enum() 116 fn derive_into_bytes_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> { in derive_into_bytes_union()
|
| H A D | mod.rs | 18 pub(crate) fn derive_immutable(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_immutable() 32 pub(crate) fn derive_hash(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_hash() 60 pub(crate) fn derive_eq(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_eq() 94 pub(crate) fn derive_split_at(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_split_at()
|
| H A D | known_layout.rs | 15 fields: &[(&'a syn::Visibility, TokenStream, &'a Type)], in derive_known_layout_for_repr_c_struct() argument 16 ) -> Option<(SelfBounds<'a>, TokenStream, Option<TokenStream>)> { in derive_known_layout_for_repr_c_struct() 250 pub(crate) fn derive(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive()
|
| /linux/rust/syn/ |
| H A D | expr.rs | 3153 pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in outer_attrs_to_tokens() 3158 fn inner_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in inner_attrs_to_tokens() 3163 pub(crate) fn outer_attrs_to_tokens(_attrs: &[Attribute], _tokens: &mut TokenStream) {} in outer_attrs_to_tokens() 3168 tokens: &mut TokenStream, in print_subexpression() 3195 pub(crate) fn print_expr(expr: &Expr, tokens: &mut TokenStream, mut fixup: FixupContext) { in print_expr() 3285 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3296 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3302 fn print_expr_assign(e: &ExprAssign, tokens: &mut TokenStream, mut fixup: FixupContext) { in print_expr_assign() 3336 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3347 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | path.rs | 733 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 738 pub(crate) fn print_path(tokens: &mut TokenStream, path: &Path, style: PathStyle) { in print_path() 748 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 753 fn print_path_segment(tokens: &mut TokenStream, segment: &PathSegment, style: PathStyle) { in print_path_segment() 760 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 765 fn print_path_arguments(tokens: &mut TokenStream, arguments: &PathArguments, style: PathStyle) { in print_path_arguments() 780 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 796 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 802 tokens: &mut TokenStream, in print_angle_bracketed_generic_arguments() 851 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | pat.rs | 796 fn pat_const(input: ParseStream) -> Result<TokenStream> { in pat_const() 823 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 837 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 846 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 856 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 866 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 874 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 884 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 900 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 919 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | ty.rs | 1089 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1098 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1109 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1123 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1133 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1154 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1161 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1175 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1182 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1190 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | generics.rs | 1163 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1197 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1249 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1294 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1304 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1314 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1326 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1342 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1357 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 1367 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| H A D | mac.rs | 155 pub(crate) fn parse_delimiter(input: ParseStream) -> Result<(MacroDelimiter, TokenStream)> { in parse_delimiter() argument 209 pub(crate) fn surround(&self, tokens: &mut TokenStream, inner: TokenStream) { in surround() 221 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
|
| H A D | item.rs | 2955 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 2971 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 2983 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 2999 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3014 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3027 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3046 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3059 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3074 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 3089 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| /linux/rust/proc-macro2/ |
| H A D | wrapper.rs | 23 pub(crate) enum TokenStream { enum 81 fn into_token_stream(mut self) -> proc_macro::TokenStream { in into_token_stream() 87 impl TokenStream { impl 115 fn unwrap_nightly(self) -> proc_macro::TokenStream { in unwrap_nightly() 122 fn unwrap_stable(self) -> fallback::TokenStream { in unwrap_stable() 130 impl Display for TokenStream { implementation 139 impl From<proc_macro::TokenStream> for TokenStream { implementation 145 impl From<TokenStream> for proc_macro::TokenStream { implementation 156 impl From<fallback::TokenStream> for TokenStream { implementation 180 impl From<TokenTree> for TokenStream { implementation [all …]
|
| H A D | lib.rs | 198 pub struct TokenStream { struct 199 inner: imp::TokenStream, argument 203 /// Error returned from `TokenStream::from_str`. argument 209 impl TokenStream { implementation 237 impl Default for TokenStream { implementation 251 impl FromStr for TokenStream { implementation 254 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() 267 impl From<proc_macro::TokenStream> for TokenStream { implementation 275 impl From<TokenStream> for proc_macro::TokenStream { implementation 281 impl From<TokenTree> for TokenStream { implementation [all …]
|
| H A D | fallback.rs | 48 pub(crate) struct TokenStream { struct 69 impl TokenStream { impl 130 impl Drop for TokenStream { implementation 183 pub(crate) fn build(self) -> TokenStream { in build() 218 impl Display for TokenStream { implementation 241 impl Debug for TokenStream { implementation 249 impl From<proc_macro::TokenStream> for TokenStream { implementation 256 impl From<TokenStream> for proc_macro::TokenStream { implementation 262 impl From<TokenTree> for TokenStream { implementation 272 impl FromIterator<TokenTree> for TokenStream { implementation [all …]
|