(self)
| 103 | |
| 104 | impl CFormatType { |
| 105 | pub const fn to_char(self) -> char { |
| 106 | match self { |
| 107 | Self::Number(x) => x as u8 as char, |
| 108 | Self::Float(x) => x as u8 as char, |
| 109 | Self::Character(x) => x as u8 as char, |
| 110 | Self::String(x) => x as u8 as char, |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | #[derive(Debug, PartialEq, Clone, Copy)] |
no outgoing calls
no test coverage detected