Debian Codegraph @

src/trait_handlers/deref/panic.rs

raw symbols SCIP
1 use proc_macro2rust-analyzer cargo proc-macro2 1.0.107 crate/::Spanrust-analyzer cargo proc-macro2 1.0.107 Span#;
2 use synrust-analyzer cargo syn 2.0.119 crate/::Variantrust-analyzer cargo syn 2.0.119 data/Variant#;
3
4 #[inline]
5 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn multiple_deref_fieldsrust-analyzer cargo educe 0.6.0 trait_handlers/deref/panic/multiple_deref_fields().(span: Spanrust-analyzer cargo proc-macro2 1.0.107 Span#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
6 synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error#::newrust-analyzer cargo syn 2.0.119 error/impl#[Error]new().(span, "multiple fields are set for `Deref`")
7 }
8
9 #[inline]
10 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn multiple_deref_fields_of_variantrust-analyzer cargo educe 0.6.0 trait_handlers/deref/panic/multiple_deref_fields_of_variant().(span: Spanrust-analyzer cargo proc-macro2 1.0.107 Span#, variant: &Variantrust-analyzer cargo syn 2.0.119 data/Variant#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
11 synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error#::newrust-analyzer cargo syn 2.0.119 error/impl#[Error]new().(
12 span,
13 formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("multiple fields of the `{}` variant are set for `Deref`", variant.identrust-analyzer cargo syn 2.0.119 data/Variant#ident.),
14 )
15 }
16
17 #[inline]
18 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn no_deref_fieldrust-analyzer cargo educe 0.6.0 trait_handlers/deref/panic/no_deref_field().(span: Spanrust-analyzer cargo proc-macro2 1.0.107 Span#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
19 synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error#::newrust-analyzer cargo syn 2.0.119 error/impl#[Error]new().(span, "there is no field which is assigned for `Deref`")
20 }
21
22 #[inline]
23 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn no_deref_field_of_variantrust-analyzer cargo educe 0.6.0 trait_handlers/deref/panic/no_deref_field_of_variant().(span: Spanrust-analyzer cargo proc-macro2 1.0.107 Span#, variant: &Variantrust-analyzer cargo syn 2.0.119 data/Variant#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
24 synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error#::newrust-analyzer cargo syn 2.0.119 error/impl#[Error]new().(
25 span,
26 formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(
27 "there is no field for the `{}` variant which is assigned for `Deref`",
28 variant.identrust-analyzer cargo syn 2.0.119 data/Variant#ident.
29 ),
30 )
31 }