MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / try_from

Method try_from

src/key_codes.rs:223–226  ·  view source on GitHub ↗
(ii: u8)

Source from the content-addressed store, hash-verified

221impl TryFrom<u8> for KeyCode {
222 type Error = String;
223 fn try_from(ii: u8) -> Result<KeyCode, Self::Error> {
224 let x: u32 = u32::from(ii) + UNICODE_BELOW_256;
225 return x.try_into();
226 }
227}
228/// KeyCodes not being used by anything by default
229/// so you're free to use these to assign macros/tapdances/leaders

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected