(&self, bits: &[u64], key: KeyCode)
| 103 | |
| 104 | #[inline] |
| 105 | fn test(&self, bits: &[u64], key: KeyCode) -> bool { |
| 106 | let idx = key.as_index(); |
| 107 | let word = idx / 64; |
| 108 | let bit = 1_u64 << (idx % 64); |
| 109 | bits[word] & bit != 0 |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | impl Default for KeyboardState { |
no test coverage detected