1use crate::CmpDisplay;
2use core::fmt;
3
4pub mod by_val;
5pub mod debug;
6pub mod sized;
7
8impl<C, E: CmpDisplay<C, dyn fmt::Debug, dyn fmt::Debug>>
9 CmpDisplay<
10 by_val::CmpByValWrapper<sized::CmpSizedWrapper<debug::CmpDebugWrapper<C>>>,
11 dyn fmt::Debug + 'static,
12 dyn fmt::Debug + 'static,
13 > for by_val::CmpByValWrapper<sized::CmpSizedWrapper<debug::CmpDebugWrapper<E>>>
14{
15 fn fmt(
16 &self,
17 cmp: &by_val::CmpByValWrapper<sized::CmpSizedWrapper<debug::CmpDebugWrapper<C>>>,
18 lhs: &(dyn fmt::Debug + 'static),
19 lhs_source: &str,
20 lhs_debug: &dyn fmt::Debug,
21 rhs: &(dyn fmt::Debug + 'static),
22 rhs_source: &str,
23 rhs_debug: &dyn fmt::Debug,
24 f: &mut fmt::Formatter,
25 ) -> fmt::Result {
26 self.0 .0 .0.fmt(
27 &cmp.0 .0 .0,
28 lhs,
29 lhs_source,
30 lhs_debug,
31 rhs,
32 rhs_source,
33 rhs_debug,
34 f,
35 )
36 }
37}
38
39#[repr(transparent)]
40pub struct Wrapper<T: ?Sized>(pub T);