use crate::word::char_type::CharType;
use crate::word::shape_word::ShapeWordFragment;
pub(crate) trait ShapeTranslateRule: Sync {
fn is_translate_code_point(&self, c: char) -> bool;
fn contains(&self, fragment: &ShapeWordFragment) -> bool;
fn get_mapper_code(&self, pre: &[char], fragment: &ShapeWordFragment) -> Option<&'static str>;
fn get_char_type(&self, c: char) -> Option<CharType>;
}