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

Method to_u8

src/key_codes.rs:211–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 }
210 }
211 pub fn to_u8(self) -> u8 {
212 let u = (self as u32) - UNICODE_BELOW_256;
213 return u as u8;
214 }
215
216 pub const fn to_u32(self) -> u32 {
217 let u = self as u32;

Callers 4

send_keysMethod · 0.80
register_keyMethod · 0.80
check_outputFunction · 0.80
as_modifier_bitMethod · 0.80

Calls

no outgoing calls

Tested by 3

send_keysMethod · 0.64
register_keyMethod · 0.64
check_outputFunction · 0.64