1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! Contains the contents of `kradfile`, `kradfile2`, `radkfile`, and `radkfile2`
//! in a format that can be easily `use`d and compiled into and Rust program.
mod decompositions;
mod memberships;
pub use decompositions::*;
pub use memberships::*;
/// The constituent radicals for a kanji
pub struct Decomposition {
/// The kanji
pub kanji: char,
/// The radicals contained in the kanji
pub radicals: &'static [char],
}
/// The kanji that contain a radical
pub struct Membership {
/// The radical
pub radical: char,
/// The kanjis that contain the radical
pub kanji: &'static [char],
/// The number of strokes to draw the radical
pub strokes: u8,
}