MCPcopy Index your code
hub / github.com/TyberiusPrime/KeyToKey / AcceptsKeycode

Interface AcceptsKeycode

src/key_codes.rs:345–347  ·  view source on GitHub ↗

Trait for things that can be converted to a u32 keycode ie. various integers and (usb) KeyCodes themselves

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 1

key_codes.rssrc/key_codes.rs

Calls

no outgoing calls

Tested by

no test coverage detected