Enum elasticlunr::lang::Language
[−]
[src]
pub enum Language { Danish, Dutch, English, Finnish, French, German, Italian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish, // some variants omitted }
Used to configure the Index
for a specific lanugage.
Variants
Danish
Dutch
English
Finnish
French
German
Italian
Portuguese
Romanian
Russian
Spanish
Swedish
Turkish
Methods
impl Language
[src]
pub fn from_code(code: &str) -> Option<Language>
[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.
pub fn to_code(&self) -> &'static str
[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.
Trait Implementations
impl Copy for Language
[src]
impl Clone for Language
[src]
fn clone(&self) -> Language
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Language
[src]
impl PartialEq for Language
[src]
fn eq(&self, __arg_0: &Language) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for Language
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Language
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Language, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more