Trait hyphenation::load::Load [−][src]
pub trait Load: Sized { fn from_reader<R>(lang: Language, reader: &mut R) -> Result<Self>
where
R: Read; fn any_from_reader<R>(reader: &mut R) -> Result<Self>
where
R: Read; fn from_embedded(lang: Language) -> Result<Self>; fn from_path<P>(lang: Language, path: P) -> Result<Self>
where
P: AsRef<Path>, { ... } }
Expand description
Convenience methods for the retrieval of hyphenation dictionaries.
Required methods
Deserialize a dictionary from the provided reader, verifying that it belongs to the expected language.
fn any_from_reader<R>(reader: &mut R) -> Result<Self> where
R: Read,
fn any_from_reader<R>(reader: &mut R) -> Result<Self> where
R: Read,
Deserialize a dictionary from the provided reader.
fn from_embedded(lang: Language) -> Result<Self>
fn from_embedded(lang: Language) -> Result<Self>
Deserialize the embedded dictionary for the given language.