Enum elasticlunr::lang::Language [] [src]

pub enum Language {
    English,
    Danish,
    Dutch,
    Finnish,
    French,
    German,
    Italian,
    Portuguese,
    Romanian,
    Russian,
    Spanish,
    Swedish,
    Turkish,
    // some variants omitted
}

Used to configure the Index for a specific lanugage.

Variants

Methods

impl Language
[src]

[src]

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.

[src]

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.

[src]

Creates a pipeline for the Language.

Trait Implementations

impl Copy for Language
[src]

impl Clone for Language
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Language
[src]

impl PartialEq for Language
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Debug for Language
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Language
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl ToString for Language
[src]

[src]

Converts the given value to a String. Read more

impl IntoEnumIterator for Language
[src]

Important traits for LanguageIter
[src]

Auto Trait Implementations

impl Send for Language

impl Sync for Language