Trait for things that can be converted to a u32 keycode ie. various integers and (usb) KeyCodes themselves
| 343 | /// Trait for things that can be converted to a u32 keycode |
| 344 | /// ie. various integers and (usb) KeyCodes themselves |
| 345 | pub trait AcceptsKeycode { |
| 346 | fn to_u32(&self) -> u32; |
| 347 | } |
| 348 | impl AcceptsKeycode for u32 { |
| 349 | fn to_u32(&self) -> u32 { |
| 350 | *self |
nothing calls this directly
no outgoing calls
no test coverage detected