Language

Enum Language 

Source
pub enum Language {
Show 99 variants English, Chinese, German, Spanish, Russian, Korean, French, Japanese, Portuguese, Turkish, Polish, Catalan, Dutch, Arabic, Swedish, Italian, Indonesian, Hindi, Finnish, Vietnamese, Hebrew, Ukrainian, Greek, Malay, Czech, Romanian, Danish, Hungarian, Tamil, Norwegian, Thai, Urdu, Croatian, Bulgarian, Lithuanian, Latin, Maori, Malayalam, Welsh, Slovak, Telugu, Persian, Latvian, Bengali, Serbian, Azerbaijani, Slovenian, Kannada, Estonian, Macedonian, Breton, Basque, Icelandic, Armenian, Nepali, Mongolian, Bosnian, Kazakh, Albanian, Swahili, Galician, Marathi, Punjabi, Sinhala, Khmer, Shona, Yoruba, Somali, Afrikaans, Occitan, Georgian, Belarusian, Tajik, Sindhi, Gujarati, Amharic, Yiddish, Lao, Uzbek, Faroese, HaitianCreole, Pashto, Turkmen, Nynorsk, Maltese, Sanskrit, Luxembourgish, Myanmar, Tibetan, Tagalog, Malagasy, Assamese, Tatar, Hawaiian, Lingala, Hausa, Bashkir, Javanese, Sundanese,
}
Expand description

Languages supported by the tokenizer

Variants§

§

English

§

Chinese

§

German

§

Spanish

§

Russian

§

Korean

§

French

§

Japanese

§

Portuguese

§

Turkish

§

Polish

§

Catalan

§

Dutch

§

Arabic

§

Swedish

§

Italian

§

Indonesian

§

Hindi

§

Finnish

§

Vietnamese

§

Hebrew

§

Ukrainian

§

Greek

§

Malay

§

Czech

§

Romanian

§

Danish

§

Hungarian

§

Tamil

§

Norwegian

§

Thai

§

Urdu

§

Croatian

§

Bulgarian

§

Lithuanian

§

Latin

§

Maori

§

Malayalam

§

Welsh

§

Slovak

§

Telugu

§

Persian

§

Latvian

§

Bengali

§

Serbian

§

Azerbaijani

§

Slovenian

§

Kannada

§

Estonian

§

Macedonian

§

Breton

§

Basque

§

Icelandic

§

Armenian

§

Nepali

§

Mongolian

§

Bosnian

§

Kazakh

§

Albanian

§

Swahili

§

Galician

§

Marathi

§

Punjabi

§

Sinhala

§

Khmer

§

Shona

§

Yoruba

§

Somali

§

Afrikaans

§

Occitan

§

Georgian

§

Belarusian

§

Tajik

§

Sindhi

§

Gujarati

§

Amharic

§

Yiddish

§

Lao

§

Uzbek

§

Faroese

§

HaitianCreole

§

Pashto

§

Turkmen

§

Nynorsk

§

Maltese

§

Sanskrit

§

Luxembourgish

§

Myanmar

§

Tibetan

§

Tagalog

§

Malagasy

§

Assamese

§

Tatar

§

Hawaiian

§

Lingala

§

Hausa

§

Bashkir

§

Javanese

§

Sundanese

Implementations§

Source§

impl Language

Source

pub const fn is_english(&self) -> bool

Returns true if the enum is Language::English otherwise false

Source

pub const fn is_chinese(&self) -> bool

Returns true if the enum is Language::Chinese otherwise false

Source

pub const fn is_german(&self) -> bool

Returns true if the enum is Language::German otherwise false

Source

pub const fn is_spanish(&self) -> bool

Returns true if the enum is Language::Spanish otherwise false

Source

pub const fn is_russian(&self) -> bool

Returns true if the enum is Language::Russian otherwise false

Source

pub const fn is_korean(&self) -> bool

Returns true if the enum is Language::Korean otherwise false

Source

pub const fn is_french(&self) -> bool

Returns true if the enum is Language::French otherwise false

Source

pub const fn is_japanese(&self) -> bool

Returns true if the enum is Language::Japanese otherwise false

Source

pub const fn is_portuguese(&self) -> bool

Returns true if the enum is Language::Portuguese otherwise false

Source

pub const fn is_turkish(&self) -> bool

Returns true if the enum is Language::Turkish otherwise false

Source

pub const fn is_polish(&self) -> bool

Returns true if the enum is Language::Polish otherwise false

Source

pub const fn is_catalan(&self) -> bool

Returns true if the enum is Language::Catalan otherwise false

Source

pub const fn is_dutch(&self) -> bool

Returns true if the enum is Language::Dutch otherwise false

Source

pub const fn is_arabic(&self) -> bool

Returns true if the enum is Language::Arabic otherwise false

Source

pub const fn is_swedish(&self) -> bool

Returns true if the enum is Language::Swedish otherwise false

Source

pub const fn is_italian(&self) -> bool

Returns true if the enum is Language::Italian otherwise false

Source

pub const fn is_indonesian(&self) -> bool

Returns true if the enum is Language::Indonesian otherwise false

Source

pub const fn is_hindi(&self) -> bool

Returns true if the enum is Language::Hindi otherwise false

Source

pub const fn is_finnish(&self) -> bool

Returns true if the enum is Language::Finnish otherwise false

Source

pub const fn is_vietnamese(&self) -> bool

Returns true if the enum is Language::Vietnamese otherwise false

Source

pub const fn is_hebrew(&self) -> bool

Returns true if the enum is Language::Hebrew otherwise false

Source

pub const fn is_ukrainian(&self) -> bool

Returns true if the enum is Language::Ukrainian otherwise false

Source

pub const fn is_greek(&self) -> bool

Returns true if the enum is Language::Greek otherwise false

Source

pub const fn is_malay(&self) -> bool

Returns true if the enum is Language::Malay otherwise false

Source

pub const fn is_czech(&self) -> bool

Returns true if the enum is Language::Czech otherwise false

Source

pub const fn is_romanian(&self) -> bool

Returns true if the enum is Language::Romanian otherwise false

Source

pub const fn is_danish(&self) -> bool

Returns true if the enum is Language::Danish otherwise false

Source

pub const fn is_hungarian(&self) -> bool

Returns true if the enum is Language::Hungarian otherwise false

Source

pub const fn is_tamil(&self) -> bool

Returns true if the enum is Language::Tamil otherwise false

Source

pub const fn is_norwegian(&self) -> bool

Returns true if the enum is Language::Norwegian otherwise false

Source

pub const fn is_thai(&self) -> bool

Returns true if the enum is Language::Thai otherwise false

Source

pub const fn is_urdu(&self) -> bool

Returns true if the enum is Language::Urdu otherwise false

Source

pub const fn is_croatian(&self) -> bool

Returns true if the enum is Language::Croatian otherwise false

Source

pub const fn is_bulgarian(&self) -> bool

Returns true if the enum is Language::Bulgarian otherwise false

Source

pub const fn is_lithuanian(&self) -> bool

Returns true if the enum is Language::Lithuanian otherwise false

Source

pub const fn is_latin(&self) -> bool

Returns true if the enum is Language::Latin otherwise false

Source

pub const fn is_maori(&self) -> bool

Returns true if the enum is Language::Maori otherwise false

Source

pub const fn is_malayalam(&self) -> bool

Returns true if the enum is Language::Malayalam otherwise false

Source

pub const fn is_welsh(&self) -> bool

Returns true if the enum is Language::Welsh otherwise false

Source

pub const fn is_slovak(&self) -> bool

Returns true if the enum is Language::Slovak otherwise false

Source

pub const fn is_telugu(&self) -> bool

Returns true if the enum is Language::Telugu otherwise false

Source

pub const fn is_persian(&self) -> bool

Returns true if the enum is Language::Persian otherwise false

Source

pub const fn is_latvian(&self) -> bool

Returns true if the enum is Language::Latvian otherwise false

Source

pub const fn is_bengali(&self) -> bool

Returns true if the enum is Language::Bengali otherwise false

Source

pub const fn is_serbian(&self) -> bool

Returns true if the enum is Language::Serbian otherwise false

Source

pub const fn is_azerbaijani(&self) -> bool

Returns true if the enum is Language::Azerbaijani otherwise false

Source

pub const fn is_slovenian(&self) -> bool

Returns true if the enum is Language::Slovenian otherwise false

Source

pub const fn is_kannada(&self) -> bool

Returns true if the enum is Language::Kannada otherwise false

Source

pub const fn is_estonian(&self) -> bool

Returns true if the enum is Language::Estonian otherwise false

Source

pub const fn is_macedonian(&self) -> bool

Returns true if the enum is Language::Macedonian otherwise false

Source

pub const fn is_breton(&self) -> bool

Returns true if the enum is Language::Breton otherwise false

Source

pub const fn is_basque(&self) -> bool

Returns true if the enum is Language::Basque otherwise false

Source

pub const fn is_icelandic(&self) -> bool

Returns true if the enum is Language::Icelandic otherwise false

Source

pub const fn is_armenian(&self) -> bool

Returns true if the enum is Language::Armenian otherwise false

Source

pub const fn is_nepali(&self) -> bool

Returns true if the enum is Language::Nepali otherwise false

Source

pub const fn is_mongolian(&self) -> bool

Returns true if the enum is Language::Mongolian otherwise false

Source

pub const fn is_bosnian(&self) -> bool

Returns true if the enum is Language::Bosnian otherwise false

Source

pub const fn is_kazakh(&self) -> bool

Returns true if the enum is Language::Kazakh otherwise false

Source

pub const fn is_albanian(&self) -> bool

Returns true if the enum is Language::Albanian otherwise false

Source

pub const fn is_swahili(&self) -> bool

Returns true if the enum is Language::Swahili otherwise false

Source

pub const fn is_galician(&self) -> bool

Returns true if the enum is Language::Galician otherwise false

Source

pub const fn is_marathi(&self) -> bool

Returns true if the enum is Language::Marathi otherwise false

Source

pub const fn is_punjabi(&self) -> bool

Returns true if the enum is Language::Punjabi otherwise false

Source

pub const fn is_sinhala(&self) -> bool

Returns true if the enum is Language::Sinhala otherwise false

Source

pub const fn is_khmer(&self) -> bool

Returns true if the enum is Language::Khmer otherwise false

Source

pub const fn is_shona(&self) -> bool

Returns true if the enum is Language::Shona otherwise false

Source

pub const fn is_yoruba(&self) -> bool

Returns true if the enum is Language::Yoruba otherwise false

Source

pub const fn is_somali(&self) -> bool

Returns true if the enum is Language::Somali otherwise false

Source

pub const fn is_afrikaans(&self) -> bool

Returns true if the enum is Language::Afrikaans otherwise false

Source

pub const fn is_occitan(&self) -> bool

Returns true if the enum is Language::Occitan otherwise false

Source

pub const fn is_georgian(&self) -> bool

Returns true if the enum is Language::Georgian otherwise false

Source

pub const fn is_belarusian(&self) -> bool

Returns true if the enum is Language::Belarusian otherwise false

Source

pub const fn is_tajik(&self) -> bool

Returns true if the enum is Language::Tajik otherwise false

Source

pub const fn is_sindhi(&self) -> bool

Returns true if the enum is Language::Sindhi otherwise false

Source

pub const fn is_gujarati(&self) -> bool

Returns true if the enum is Language::Gujarati otherwise false

Source

pub const fn is_amharic(&self) -> bool

Returns true if the enum is Language::Amharic otherwise false

Source

pub const fn is_yiddish(&self) -> bool

Returns true if the enum is Language::Yiddish otherwise false

Source

pub const fn is_lao(&self) -> bool

Returns true if the enum is Language::Lao otherwise false

Source

pub const fn is_uzbek(&self) -> bool

Returns true if the enum is Language::Uzbek otherwise false

Source

pub const fn is_faroese(&self) -> bool

Returns true if the enum is Language::Faroese otherwise false

Source

pub const fn is_haitian_creole(&self) -> bool

Returns true if the enum is Language::HaitianCreole otherwise false

Source

pub const fn is_pashto(&self) -> bool

Returns true if the enum is Language::Pashto otherwise false

Source

pub const fn is_turkmen(&self) -> bool

Returns true if the enum is Language::Turkmen otherwise false

Source

pub const fn is_nynorsk(&self) -> bool

Returns true if the enum is Language::Nynorsk otherwise false

Source

pub const fn is_maltese(&self) -> bool

Returns true if the enum is Language::Maltese otherwise false

Source

pub const fn is_sanskrit(&self) -> bool

Returns true if the enum is Language::Sanskrit otherwise false

Source

pub const fn is_luxembourgish(&self) -> bool

Returns true if the enum is Language::Luxembourgish otherwise false

Source

pub const fn is_myanmar(&self) -> bool

Returns true if the enum is Language::Myanmar otherwise false

Source

pub const fn is_tibetan(&self) -> bool

Returns true if the enum is Language::Tibetan otherwise false

Source

pub const fn is_tagalog(&self) -> bool

Returns true if the enum is Language::Tagalog otherwise false

Source

pub const fn is_malagasy(&self) -> bool

Returns true if the enum is Language::Malagasy otherwise false

Source

pub const fn is_assamese(&self) -> bool

Returns true if the enum is Language::Assamese otherwise false

Source

pub const fn is_tatar(&self) -> bool

Returns true if the enum is Language::Tatar otherwise false

Source

pub const fn is_hawaiian(&self) -> bool

Returns true if the enum is Language::Hawaiian otherwise false

Source

pub const fn is_lingala(&self) -> bool

Returns true if the enum is Language::Lingala otherwise false

Source

pub const fn is_hausa(&self) -> bool

Returns true if the enum is Language::Hausa otherwise false

Source

pub const fn is_bashkir(&self) -> bool

Returns true if the enum is Language::Bashkir otherwise false

Source

pub const fn is_javanese(&self) -> bool

Returns true if the enum is Language::Javanese otherwise false

Source

pub const fn is_sundanese(&self) -> bool

Returns true if the enum is Language::Sundanese otherwise false

Trait Implementations§

Source§

impl Clone for Language

Source§

fn clone(&self) -> Language

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Language

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Language

Source§

fn default() -> Language

Returns the “default value” for a type. Read more
Source§

impl Display for Language

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EnumMessage for Language

Source§

fn get_message(&self) -> Option<&'static str>

Source§

fn get_detailed_message(&self) -> Option<&'static str>

Source§

fn get_documentation(&self) -> Option<&'static str>

Get the doc comment associated with a variant if it exists.
Source§

fn get_serializations(&self) -> &'static [&'static str]

Source§

impl FromStr for Language

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Language, <Self as FromStr>::Err>

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

impl IntoEnumIterator for Language

Source§

type Iterator = LanguageIter

Source§

fn iter() -> LanguageIter

Source§

impl TryFrom<&str> for Language

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from(s: &str) -> Result<Language, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy for Language

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,