Skip to main content

HyphenationDataSource

Trait HyphenationDataSource 

Source
pub trait HyphenationDataSource: Send + 'static {
    // Required method
    fn load(&mut self, lang: Language) -> Option<Standard>;
}
Expand description

Represents a hyphenation dictionary source.

The data source must be registered in HYPHENATION.init_data_source.

Required Methods§

Source

fn load(&mut self, lang: Language) -> Option<Standard>

Load the dictionary for the lang.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HyphenationDataSource for HyphenationDataDir

Source§

impl HyphenationDataSource for HyphenationDataEmbedded

Available on crate feature hyphenation_embed_all only.