pub struct TOCFLDictionary<V> {
pub hashmap: HashMap<(String, String), V>,
}Fields§
§hashmap: HashMap<(String, String), V>Implementations§
Source§impl<V> TOCFLDictionary<V>
impl<V> TOCFLDictionary<V>
Sourcepub fn get_entry(&self, traditional: &str, pinyin: &str) -> Option<&V>
pub fn get_entry(&self, traditional: &str, pinyin: &str) -> Option<&V>
Get an entry for its traditional chinese character + pinyin combination Prefer to use this to differentiate between different characters that have multiple pronounciations
Note that some characters have multiple pronounciations, e.g. 分 fēn and fèn
The pinyin can have the format “yì” or “yi4”
§Limitation
Note that some characters don’t have a pinyin, e.g. 食.
Sourcepub fn get_entry_no_pinyin(&self, traditional: &str) -> Option<&V>
pub fn get_entry_no_pinyin(&self, traditional: &str) -> Option<&V>
Get an entry for its traditional chinese character
Auto Trait Implementations§
impl<V> Freeze for TOCFLDictionary<V>
impl<V> RefUnwindSafe for TOCFLDictionary<V>where
V: RefUnwindSafe,
impl<V> Send for TOCFLDictionary<V>where
V: Send,
impl<V> Sync for TOCFLDictionary<V>where
V: Sync,
impl<V> Unpin for TOCFLDictionary<V>where
V: Unpin,
impl<V> UnwindSafe for TOCFLDictionary<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more