Trait DictionaryStore

Source
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§

Source

fn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>

Get binary data for the word with the given id.

Source

fn identifier(&self) -> Option<String>

Get the identifier (e.g. the variant or version of this dictionary).

Implementations on Foreign Types§

Source§

impl<'a> DictionaryStore<'a> for Dictionary

Source§

fn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>

Source§

fn identifier(&self) -> Option<String>

Source§

impl<'a> DictionaryStore<'a> for UserDictionary

Source§

fn get_bytes(&'a self, id: u32) -> JPreprocessResult<&'a [u8]>

Source§

fn identifier(&self) -> Option<String>

Implementors§

Source§

impl<'a, T> DictionaryStore<'a> for T
where T: AsRef<dyn DictionaryStore<'a>>,