pub trait DictionaryWordEncoding: Sized {
// Required methods
fn identifier() -> &'static str;
fn encode(row: WordDetailsLine) -> LinderaResult<Vec<u8>>;
fn decode(string: String, details: &[u8]) -> LinderaResult<Vec<String>>;
}Expand description
A trait for encoding and decoding as dictionary entry.
Required Methods§
fn identifier() -> &'static str
fn encode(row: WordDetailsLine) -> LinderaResult<Vec<u8>>
fn decode(string: String, details: &[u8]) -> LinderaResult<Vec<String>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.