Debian Codegraph @

src/trait_handlers/deref/mod.rs

raw symbols SCIP
1 mod deref_enumrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_enum/;
2 mod deref_structrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_struct/;
3 mod modelsrust-analyzer cargo educe 0.6.0 trait_handlers/deref/models/;
4 mod panicrust-analyzer cargo educe 0.6.0 trait_handlers/deref/panic/;
5
6 use synrust-analyzer cargo syn 2.0.119 crate/::{Datarust-analyzer cargo syn 2.0.119 derive/Data#, DeriveInputrust-analyzer cargo syn 2.0.119 derive/DeriveInput#, Metarust-analyzer cargo syn 2.0.119 attr/Meta#};
7
8 use superrust-analyzer cargo educe 0.6.0 trait_handlers/::TraitHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/TraitHandler#;
9 use craterust-analyzer cargo educe 0.6.0 crate/::Traitrust-analyzer cargo educe 0.6.0 supported_traits/Trait#;
10
11 pub(craterust-analyzer cargo educe 0.6.0 crate/) struct DerefHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/DerefHandler#;
12
13 impl TraitHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/TraitHandler# for DerefHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/DerefHandler# {
14 #[inline]
15 fn trait_meta_handlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/impl#[DerefHandler][TraitHandler]trait_meta_handler().(
16 ast: &DeriveInputrust-analyzer cargo syn 2.0.119 derive/DeriveInput#,
17 token_stream: &mut proc_macro2rust-analyzer cargo proc-macro2 1.0.107 crate/::TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream#,
18 traits: &[Traitrust-analyzer cargo educe 0.6.0 supported_traits/Trait#],
19 meta: &Metarust-analyzer cargo syn 2.0.119 attr/Meta#,
20 ) -> synrust-analyzer cargo syn 2.0.119 crate/::Resultrust-analyzer cargo syn 2.0.119 error/Result#<()> {
21 match ast.datarust-analyzer cargo syn 2.0.119 derive/DeriveInput#data. {
22 Datarust-analyzer cargo syn 2.0.119 derive/Data#::Structrust-analyzer cargo syn 2.0.119 derive/Data#Struct#(_) => deref_structrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_struct/::DerefStructHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_struct/DerefStructHandler#::trait_meta_handlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_struct/impl#[DerefStructHandler][TraitHandler]trait_meta_handler().(
23 ast,
24 token_stream,
25 traits,
26 meta,
27 ),
28 Datarust-analyzer cargo syn 2.0.119 derive/Data#::Enumrust-analyzer cargo syn 2.0.119 derive/Data#Enum#(_) => {
29 deref_enumrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_enum/::DerefEnumHandlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_enum/DerefEnumHandler#::trait_meta_handlerrust-analyzer cargo educe 0.6.0 trait_handlers/deref/deref_enum/impl#[DerefEnumHandler][TraitHandler]trait_meta_handler().(ast, token_stream, traits, meta)
30 },
31 Datarust-analyzer cargo syn 2.0.119 derive/Data#::Unionrust-analyzer cargo syn 2.0.119 derive/Data#Union#(_) => {
32 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(craterust-analyzer cargo educe 0.6.0 crate/::panicrust-analyzer cargo educe 0.6.0 panic/::trait_not_support_unionrust-analyzer cargo educe 0.6.0 panic/trait_not_support_union().(meta.pathrust-analyzer cargo syn 2.0.119 attr/impl#[Meta]path().().get_identrust-analyzer cargo syn 2.0.119 path/impl#[Path]get_ident().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().()))
33 },
34 }
35 }
36 }