Trait jpreprocess_dictionary::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>>,