(&self)
| 52 | } |
| 53 | |
| 54 | fn to_short_string(&self) -> String { |
| 55 | if let Some(uuid16) = self.to_ble_u16() { |
| 56 | format!("{:#04x}", uuid16) |
| 57 | } else if let Some(uuid32) = self.to_ble_u32() { |
| 58 | format!("{:#06x}", uuid32) |
| 59 | } else { |
| 60 | self.to_string() |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | #[cfg(test)] |
no test coverage detected