[−][src]Enum elasticlunr::lang::Language
Used to configure the Index
for a specific lanugage.
Variants
English
Danish
Dutch
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.
pub fn make_pipeline(&self) -> Pipeline
[src]
Creates a pipeline for the Language
.
Trait Implementations
impl PartialEq<Language> for Language
[src]
fn eq(&self, other: &Language) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for Language
[src]
impl ToString for Language
[src]
impl Eq for Language
[src]
impl Clone for Language
[src]
fn clone(&self) -> Language
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Language
[src]
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]
impl IntoEnumIterator for Language
[src]
type Iterator = LanguageIter
ⓘImportant traits for LanguageIterfn iter() -> LanguageIter
[src]
Auto Trait Implementations
impl Send for Language
impl Unpin for Language
impl Sync for Language
impl UnwindSafe for Language
impl RefUnwindSafe for Language
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,