pub trait DictionaryStore<'a> {
// Required methods
fn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>;
fn identifier(&self) -> Option<String>;
}
Expand description
Dictionary storage trait.
Required Methods§
sourcefn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>
fn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>
Get binary data for the word with the given id.
sourcefn identifier(&self) -> Option<String>
fn identifier(&self) -> Option<String>
Get the identifier (e.g. the variant or version of this dictionary).