Debian Codegraph @

src/wrapper.rs

raw symbols SCIP
1 use craterust-analyzer cargo anyhow 1.0.103 crate/::StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#;
2 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::{selfrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#, Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#};
3
4 #[cfg(any(feature = "std", not(anyhow_no_core_error)))]
5 use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::boxedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/::Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#;
6
7 #[cfg(error_generic_member_access)]
8 use craterust-analyzer cargo anyhow 1.0.103 crate/::nightly::{self, Request};
9
10 #[repr(transparent)]
11 pub struct MessageErrorrust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#<M>(pub M);
12
13 impl<M> Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for MessageErrorrust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#<M>
14 where
15 M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#,
16 {
17 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[`MessageError<M>`][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
18 Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#0., f)
19 }
20 }
21
22 impl<M> Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for MessageErrorrust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#<M>
23 where
24 M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#,
25 {
26 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[`MessageError<M>`][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
27 Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#0., f)
28 }
29 }
30
31 impl<M> StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for MessageErrorrust-analyzer cargo anyhow 1.0.103 wrapper/MessageError#<M> where M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# + 'static {}
32
33 #[repr(transparent)]
34 pub struct DisplayErrorrust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#<M>(pub M);
35
36 impl<M> Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for DisplayErrorrust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#<M>
37 where
38 M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#,
39 {
40 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[`DisplayError<M>`][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
41 Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#0., f)
42 }
43 }
44
45 impl<M> Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for DisplayErrorrust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#<M>
46 where
47 M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#,
48 {
49 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[`DisplayError<M>`][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
50 Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#0., f)
51 }
52 }
53
54 impl<M> StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for DisplayErrorrust-analyzer cargo anyhow 1.0.103 wrapper/DisplayError#<M> where M: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# + 'static {}
55
56 #[cfg(any(feature = "std", not(anyhow_no_core_error)))]
57 #[repr(transparent)]
58 pub struct BoxedErrorrust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError#(pub Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync#>);
59
60 #[cfg(any(feature = "std", not(anyhow_no_core_error)))]
61 impl Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for BoxedErrorrust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError# {
62 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[BoxedError][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
63 Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T, A>`][Debug]fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError#0., f)
64 }
65 }
66
67 #[cfg(any(feature = "std", not(anyhow_no_core_error)))]
68 impl Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for BoxedErrorrust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError# {
69 fn fmtrust-analyzer cargo anyhow 1.0.103 wrapper/impl#[BoxedError][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
70 Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T, A>`][Display]fmt().(&self.0rust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError#0., f)
71 }
72 }
73
74 #[cfg(any(feature = "std", not(anyhow_no_core_error)))]
75 impl StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for BoxedErrorrust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError# {
76 fn sourcerust-analyzer cargo anyhow 1.0.103 wrapper/impl#[BoxedError][Error]source().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&(dyn StdErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# + 'static)> {
77 self.0rust-analyzer cargo anyhow 1.0.103 wrapper/BoxedError#0..sourcerust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#source().()
78 }
79
80 #[cfg(error_generic_member_access)]
81 fn provide<'a>(&'a self, request: &mut Request<'a>) {
82 nightly::provide(&*selfrust-analyzer cargo anyhow 1.0.103 wrapper/.0, request);
83 }
84 }