pub struct UnknownDictionary {
pub category_references: Vec<Vec<u32>>,
pub costs: Vec<WordEntry>,
}
Fields§
§category_references: Vec<Vec<u32>>
§costs: Vec<WordEntry>
Implementations§
source§impl UnknownDictionary
impl UnknownDictionary
pub fn load(unknown_data: &[u8]) -> LinderaResult<UnknownDictionary>
pub fn word_entry(&self, word_id: u32) -> WordEntry
pub fn lookup_word_ids(&self, category_id: CategoryId) -> &[u32]
Trait Implementations§
source§impl Clone for UnknownDictionary
impl Clone for UnknownDictionary
source§fn clone(&self) -> UnknownDictionary
fn clone(&self) -> UnknownDictionary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for UnknownDictionary
impl<'de> Deserialize<'de> for UnknownDictionary
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnknownDictionary
impl RefUnwindSafe for UnknownDictionary
impl Send for UnknownDictionary
impl Sync for UnknownDictionary
impl Unpin for UnknownDictionary
impl UnwindSafe for UnknownDictionary
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