Enum elasticlunr::lang::Language [−][src]
pub enum Language {
Show 16 variants
English,
Danish,
Norwegian,
Dutch,
Finnish,
French,
German,
Italian,
Portuguese,
Romanian,
Russian,
Spanish,
Swedish,
Turkish,
Chinese,
Japanese,
// some variants omitted
}
Expand description
Used to configure the Index
for a specific lanugage.
Variants
Implementations
Returns the Language
for the given two-character ISO 639-1 language code if the
language is supported. Returns None
if not supported.
Note:
The ISO 639-1 code for Dutch is “nl”. However “du” is used for the module name and pipeline suffix in order to match lunr-languages.
Returns the two-character ISO 639-1 language code for the Language
.
Note:
The ISO 639-1 code for Dutch is “nl”. However “du” is used for the module name and pipeline suffix in order to match lunr-languages.
Creates a pipeline for the Language
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Iterator = LanguageIter
fn iter() -> LanguageIterⓘNotable traits for LanguageIterimpl Iterator for LanguageIter type Item = Language;
Notable traits for LanguageIter
impl Iterator for LanguageIter type Item = Language;
Auto Trait Implementations
impl RefUnwindSafe for Language
impl UnwindSafe for Language
Blanket Implementations
Mutably borrows from an owned value. Read more