(&self)
| 1113 | } |
| 1114 | |
| 1115 | pub(crate) fn to_bytes(&self) -> u8 { |
| 1116 | match self { |
| 1117 | Self::Size8 => 1, |
| 1118 | Self::Size16 => 2, |
| 1119 | Self::Size32 => 4, |
| 1120 | Self::Size64 => 8, |
| 1121 | } |
| 1122 | } |
| 1123 | |
| 1124 | pub(crate) fn to_bits(&self) -> u8 { |
| 1125 | self.to_bytes() * 8 |
no outgoing calls
no test coverage detected