[][src]Trait spandex_hyphenation::load::Load

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_path<P>(lang: Language, path: P) -> Result<Self>
    where
        P: AsRef<Path>
, { ... } }

Convenience methods for the retrieval of hyphenation dictionaries.

Required methods

fn from_reader<R>(lang: Language, reader: &mut R) -> Result<Self> where
    R: Read

Deserialize a dictionary from the provided reader, verifying that it effectively belongs to the requested language.

fn any_from_reader<R>(reader: &mut R) -> Result<Self> where
    R: Read

Deserialize a dictionary from the provided reader.

Loading content...

Provided methods

fn from_path<P>(lang: Language, path: P) -> Result<Self> where
    P: AsRef<Path>, 

Read and deserialize the dictionary at the given path, verifying that it effectively belongs to the requested language.

Loading content...

Implementors

impl Load for Extended[src]

impl Load for Standard[src]

Loading content...