Home
last modified time | relevance | path

Searched refs:DeriveInput (Results 1 - 25 of 31) sorted by relevance

12

/third_party/rust/crates/syn/tests/
H A Dtest_derive_input.rs12 use syn::{Data, DeriveInput};
20 snapshot!(input as DeriveInput, @r###" in test_unit()
21 DeriveInput { in test_unit()
43 snapshot!(input as DeriveInput, @r###" in test_struct()
44 DeriveInput { in test_struct()
139 snapshot!(input as DeriveInput, @r###" in test_union()
140 DeriveInput { in test_union()
200 snapshot!(input as DeriveInput, @r###" in test_enum()
201 DeriveInput { in test_enum()
353 syn::parse2::<DeriveInput>(inpu in test_attr_with_non_mod_style_path()
[all...]
H A Dtest_generics.rs11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate};
19 snapshot!(input as DeriveInput, @r###" in test_split_for_impl()
20 DeriveInput { in test_split_for_impl()
H A Dtest_visibility.rs8 use syn::{DeriveInput, Result, Visibility};
125 snapshot!(tokens as DeriveInput, @r###" in test_empty_group_vis()
126 DeriveInput { in test_empty_group_vis()
/third_party/rust/crates/clap/clap_derive/src/
H A Dlib.rs22 use syn::{parse_macro_input, DeriveInput};
37 let input: DeriveInput = parse_macro_input!(input); in value_enum()
54 let input: DeriveInput = parse_macro_input!(input); in parser()
86 let input: DeriveInput = parse_macro_input!(input); in subcommand()
98 let input: DeriveInput = parse_macro_input!(input); in args()
H A Ditem.rs20 use syn::DeriveInput;
55 pub fn from_args_struct(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_args_struct()
72 pub fn from_subcommand_enum(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_subcommand_enum()
89 pub fn from_value_enum(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_value_enum()
/third_party/rust/crates/serde/serde_derive/src/
H A Dlib.rs74 use syn::DeriveInput;
89 let mut input = parse_macro_input!(input as DeriveInput); in derive_serialize()
97 let mut input = parse_macro_input!(input as DeriveInput); in derive_deserialize()
H A Dser.rs10 pub fn expand_derive_serialize(input: &mut syn::DeriveInput) -> syn::Result<TokenStream> { in expand_derive_serialize()
/third_party/rust/crates/syn/src/
H A Dderive.rs7 pub struct DeriveInput { structure names
67 impl Parse for DeriveInput {
78 Ok(DeriveInput { in parse()
97 Ok(DeriveInput { in parse()
116 Ok(DeriveInput { in parse()
203 impl ToTokens for DeriveInput {
H A Ditem.rs2 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
333 impl From<DeriveInput> for Item {
334 fn from(input: DeriveInput) -> Item { in from()
366 impl From<ItemStruct> for DeriveInput {
367 fn from(input: ItemStruct) -> DeriveInput { in from()
368 DeriveInput { in from()
382 impl From<ItemEnum> for DeriveInput {
383 fn from(input: ItemEnum) -> DeriveInput { in from()
384 DeriveInput { in from()
398 impl From<ItemUnion> for DeriveInput {
[all...]
H A Dlib.rs22 //! [`syn::DeriveInput`] which is any of the three legal input items to a
46 //! [`syn::DeriveInput`]: DeriveInput
77 //! use syn::{parse_macro_input, DeriveInput};
84 //! let input = parse_macro_input!(input as DeriveInput);
342 pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
881 /// use syn::DeriveInput;
888 /// let ast: DeriveInput = syn::parse(input).unwrap();
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/
H A Dlib.rs5 parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index,
11 let input = parse_macro_input!(input as DeriveInput); in derive_heap_size()
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dvalue_enum.rs14 use syn::{spanned::Spanned, Data, DeriveInput, Fields, Ident, Variant};
18 pub fn derive_value_enum(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_value_enum()
H A Dparser.rs20 self, punctuated::Punctuated, token::Comma, Data, DataStruct, DeriveInput, Field, Fields,
28 pub fn derive_parser(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_parser()
H A Dsubcommand.rs17 use syn::{spanned::Spanned, Data, DeriveInput, FieldsUnnamed, Generics, Variant};
23 pub fn derive_subcommand(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_subcommand()
H A Dargs.rs19 punctuated::Punctuated, spanned::Spanned, token::Comma, Data, DataStruct, DeriveInput, Field,
26 pub fn derive_args(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_args()
/third_party/rust/crates/serde/serde_derive_internals/src/
H A Dast.rs19 pub original: &'a syn::DeriveInput,
63 item: &'a syn::DeriveInput, in from_ast()
H A Dreceiver.rs7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro,
11 pub fn replace_receiver(input: &mut DeriveInput) { in replace_receiver()
H A Dattr.rs287 pub fn from_ast(cx: &Ctxt, item: &syn::DeriveInput) -> Self { in from_ast()
688 item: &syn::DeriveInput, in decide_tag()
749 item: &syn::DeriveInput, in decide_identifier()
/third_party/rust/crates/serde/serde_derive/src/internals/
H A Dast.rs19 pub original: &'a syn::DeriveInput,
63 item: &'a syn::DeriveInput, in from_ast()
H A Dreceiver.rs7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro,
11 pub fn replace_receiver(input: &mut DeriveInput) { in replace_receiver()
H A Dattr.rs287 pub fn from_ast(cx: &Ctxt, item: &syn::DeriveInput) -> Self { in from_ast()
688 item: &syn::DeriveInput, in decide_tag()
749 item: &syn::DeriveInput, in decide_identifier()
/third_party/rust/crates/syn/codegen/src/
H A Dparse.rs10 parse_quote, Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, GenericArgument,
64 ast: DeriveInput,
605 ast: DeriveInput { in do_load_file()
/third_party/rust/crates/syn/src/gen/
H A Dvisit.rs126 fn visit_derive_input(&mut self, i: &'ast DeriveInput) { in visit_derive_input()
1257 pub fn visit_derive_input<'ast, V>(v: &mut V, node: &'ast DeriveInput) in visit_derive_input()
H A Dclone.rs215 impl Clone for DeriveInput {
217 DeriveInput { in clone()
H A Dfold.rs127 fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput { in fold_derive_input()
1186 pub fn fold_derive_input<F>(f: &mut F, node: DeriveInput) -> DeriveInput in fold_derive_input()
1190 DeriveInput { in fold_derive_input()

Completed in 28 milliseconds

12