1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use std::fmt::{Debug, Formatter, Result as FmtResult};
use crate::{StringError, MaybeBacktrace};
impl<E: ?Sized, B: MaybeBacktrace> Debug for StringError<E, B>
{
default fn fmt(&self, fmt: &mut Formatter) -> FmtResult {
fmt.debug_struct("StringError")
.field("msg", &self.msg)
.field("bt" , &self.bt )
.finish_non_exhaustive()
}
}
impl<E: Sized + Debug, B: MaybeBacktrace> Debug for StringError<E, B>
{
fn fmt(&self, fmt: &mut Formatter) -> FmtResult {
fmt.debug_struct("StringError")
.field("msg", &self.msg)
.field("err", &self.err)
.field("bt" , &self.bt )
.finish_non_exhaustive()
}
}