pub struct DictEntry {
pub word: &'static str,
pub left_id: u16,
pub right_id: u16,
pub cost: i32,
}Fields§
§word: &'static str埋め込み辞書(mozc_dict.txt)の中を指す。【2026-10-24】従来は見出し・単語を全部 String に
複製し、4MB の辞書がヒープを約 18MB 使っていた(YouTube 視聴でヒープが尽きた一因)。
left_id: u16§right_id: u16§cost: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for DictEntry
impl RefUnwindSafe for DictEntry
impl Send for DictEntry
impl Sync for DictEntry
impl Unpin for DictEntry
impl UnsafeUnpin for DictEntry
impl UnwindSafe for DictEntry
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