flex/
fmt.rs

1use super::Flex;
2
3use core::fmt::*;
4use core::ops::Deref;
5
6impl<'a, T: ?Sized + Display> Display for Flex<'a, T> {
7    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
8        self.deref().fmt(f)
9    }
10}
11
12impl<'a, T: ?Sized + Binary> Binary for Flex<'a, T> {
13    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
14        self.deref().fmt(f)
15    }
16}
17
18impl<'a, T: ?Sized + Octal> Octal for Flex<'a, T> {
19    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
20        self.deref().fmt(f)
21    }
22}
23
24impl<'a, T: ?Sized + LowerHex> LowerHex for Flex<'a, T> {
25    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
26        self.deref().fmt(f)
27    }
28}
29
30impl<'a, T: ?Sized + UpperHex> UpperHex for Flex<'a, T> {
31    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
32        self.deref().fmt(f)
33    }
34}
35
36impl<'a, T: ?Sized + LowerExp> LowerExp for Flex<'a, T> {
37    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
38        self.deref().fmt(f)
39    }
40}
41
42impl<'a, T: ?Sized + UpperExp> UpperExp for Flex<'a, T> {
43    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
44        self.deref().fmt(f)
45    }
46}
47
48impl<'a, T: ?Sized> Pointer for Flex<'a, T> {
49    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
50        self.deref().fmt(f)
51    }
52}