kradical_static 0.2.0

Ready-to-use EDRDG radical decompositions
Documentation
//! 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,
}