pub fn class(b: u8) -> u64Expand description
The class of the byte b read as the code point U+0000 to U+00FF: the same
as symbol_class(b.into()). For ASCII that is bit b & 63.
ยงExamples
use keyhammer::cost::class;
assert_ne!(class(b'a'), class(b'b'));
assert_eq!(class(b'a'), class(b'!')); // 97 and 33 are equal modulo 64