Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![no_std]

pub mod category;

pub trait CharExt {
    fn general_category(self) -> category::General;
}

impl CharExt for char {
    #[inline]
    fn general_category(self) -> category::General { category::General::en(include_bytes!("../data/category")[self as usize] as usize) }
}