Debian Codegraph @

src/trait_handlers/into/panic.rs

raw symbols SCIP
1 use craterust-analyzer cargo educe 0.6.0 crate/::commonrust-analyzer cargo educe 0.6.0 common/::toolsrust-analyzer cargo educe 0.6.0 common/tools/::HashTyperust-analyzer cargo educe 0.6.0 common/tools/hash_type/HashType#;
2
3 #[inline]
4 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn reset_a_typerust-analyzer cargo educe 0.6.0 trait_handlers/into/panic/reset_a_type().(ty: &HashTyperust-analyzer cargo educe 0.6.0 common/tools/hash_type/HashType#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
5 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().(ty.spanrust-analyzer cargo educe 0.6.0 common/tools/hash_type/impl#[HashType]span().(), formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("the type `{ty}` is repeatedly set"))
6 }
7
8 #[inline]
9 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn no_into_fieldrust-analyzer cargo educe 0.6.0 trait_handlers/into/panic/no_into_field().(ty: &HashTyperust-analyzer cargo educe 0.6.0 common/tools/hash_type/HashType#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
10 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().(ty.spanrust-analyzer cargo educe 0.6.0 common/tools/hash_type/impl#[HashType]span().(), formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("there is no field which is assigned for `Into<{ty}>`"))
11 }
12
13 #[inline]
14 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn no_into_implrust-analyzer cargo educe 0.6.0 trait_handlers/into/panic/no_into_impl().(ty: &HashTyperust-analyzer cargo educe 0.6.0 common/tools/hash_type/HashType#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
15 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().(
16 ty.spanrust-analyzer cargo educe 0.6.0 common/tools/hash_type/impl#[HashType]span().(),
17 formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(
18 "if you want to impl `Into<{ty}>` for this type, you should write \
19 `#[educe(Into({ty}))]` outside"
20 ),
21 )
22 }
23
24 #[inline]
25 pub(craterust-analyzer cargo educe 0.6.0 crate/) fn multiple_into_fieldsrust-analyzer cargo educe 0.6.0 trait_handlers/into/panic/multiple_into_fields().(ty: &HashTyperust-analyzer cargo educe 0.6.0 common/tools/hash_type/HashType#) -> synrust-analyzer cargo syn 2.0.119 crate/::Errorrust-analyzer cargo syn 2.0.119 error/Error# {
26 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().(ty.spanrust-analyzer cargo educe 0.6.0 common/tools/hash_type/impl#[HashType]span().(), formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("multiple fields are set for `Into<{ty}>`"))
27 }