float01/float32/
display.rs1use std::fmt::{Debug, Display, Formatter, UpperExp, UpperHex};
2use super::*;
3
4
5impl Display for f01 {
6 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
7 Display::fmt(&self.wrapped, f)
8 }
9}
10
11impl Debug for f01 {
12 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
13 Debug::fmt(&self.wrapped, f)
14 }
15}
16
17impl UpperHex for f01 {
18 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
19 UpperHex::fmt(&self.wrapped.to_bits(), f)
20 }
21}
22
23impl UpperExp for f01 {
24 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
25 UpperExp::fmt(&self.wrapped, f)
26 }
27}