Struct winsafe::co::SUBLANG

source ·
pub struct SUBLANG(/* private fields */);
Available on crate feature kernel only.
Expand description

Sublanguage identifier (u16).

Implementations§

source§

impl SUBLANG

source

pub const unsafe fn from_raw(v: u16) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

source

pub const fn raw(&self) -> u16

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

source§

impl SUBLANG

source

pub const NEUTRAL: Self = _

source

pub const DEFAULT: Self = _

source

pub const SYS_DEFAULT: Self = _

source

pub const CUSTOM_DEFAULT: Self = _

source

pub const CUSTOM_UNSPECIFIED: Self = _

source

pub const UI_CUSTOM_DEFAULT: Self = _

source

pub const AFRIKAANS_SOUTH_AFRICA: Self = _

source

pub const ALBANIAN_ALBANIA: Self = _

source

pub const ALSATIAN_FRANCE: Self = _

source

pub const AMHARIC_ETHIOPIA: Self = _

source

pub const ARABIC_SAUDI_ARABIA: Self = _

source

pub const ARABIC_IRAQ: Self = _

source

pub const ARABIC_EGYPT: Self = _

source

pub const ARABIC_LIBYA: Self = _

source

pub const ARABIC_ALGERIA: Self = _

source

pub const ARABIC_MOROCCO: Self = _

source

pub const ARABIC_TUNISIA: Self = _

source

pub const ARABIC_OMAN: Self = _

source

pub const ARABIC_YEMEN: Self = _

source

pub const ARABIC_SYRIA: Self = _

source

pub const ARABIC_JORDAN: Self = _

source

pub const ARABIC_LEBANON: Self = _

source

pub const ARABIC_KUWAIT: Self = _

source

pub const ARABIC_UAE: Self = _

source

pub const ARABIC_BAHRAIN: Self = _

source

pub const ARABIC_QATAR: Self = _

source

pub const ARMENIAN_ARMENIA: Self = _

source

pub const ASSAMESE_INDIA: Self = _

source

pub const AZERI_LATIN: Self = _

source

pub const AZERI_CYRILLIC: Self = _

source

pub const AZERBAIJANI_AZERBAIJAN_LATIN: Self = _

source

pub const AZERBAIJANI_AZERBAIJAN_CYRILLIC: Self = _

source

pub const BANGLA_INDIA: Self = _

source

pub const BANGLA_BANGLADESH: Self = _

source

pub const BASHKIR_RUSSIA: Self = _

source

pub const BASQUE_BASQUE: Self = _

source

pub const BELARUSIAN_BELARUS: Self = _

source

pub const BENGALI_INDIA: Self = _

source

pub const BENGALI_BANGLADESH: Self = _

source

pub const BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: Self = _

source

pub const BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: Self = _

source

pub const BRETON_FRANCE: Self = _

source

pub const BULGARIAN_BULGARIA: Self = _

source

pub const CATALAN_CATALAN: Self = _

source

pub const CENTRAL_KURDISH_IRAQ: Self = _

source

pub const CHEROKEE_CHEROKEE: Self = _

source

pub const CHINESE_TRADITIONAL: Self = _

source

pub const CHINESE_SIMPLIFIED: Self = _

source

pub const CHINESE_HONGKONG: Self = _

source

pub const CHINESE_SINGAPORE: Self = _

source

pub const CHINESE_MACAU: Self = _

source

pub const CORSICAN_FRANCE: Self = _

source

pub const CZECH_CZECH_REPUBLIC: Self = _

source

pub const CROATIAN_CROATIA: Self = _

source

pub const CROATIAN_BOSNIA_HERZEGOVINA_LATIN: Self = _

source

pub const DANISH_DENMARK: Self = _

source

pub const DARI_AFGHANISTAN: Self = _

source

pub const DIVEHI_MALDIVES: Self = _

source

pub const DUTCH: Self = _

source

pub const DUTCH_BELGIAN: Self = _

source

pub const ENGLISH_US: Self = _

source

pub const ENGLISH_UK: Self = _

source

pub const ENGLISH_AUS: Self = _

source

pub const ENGLISH_CAN: Self = _

source

pub const ENGLISH_NZ: Self = _

source

pub const ENGLISH_EIRE: Self = _

source

pub const ENGLISH_SOUTH_AFRICA: Self = _

source

pub const ENGLISH_JAMAICA: Self = _

source

pub const ENGLISH_CARIBBEAN: Self = _

source

pub const ENGLISH_BELIZE: Self = _

source

pub const ENGLISH_TRINIDAD: Self = _

source

pub const ENGLISH_ZIMBABWE: Self = _

source

pub const ENGLISH_PHILIPPINES: Self = _

source

pub const ENGLISH_INDIA: Self = _

source

pub const ENGLISH_MALAYSIA: Self = _

source

pub const ENGLISH_SINGAPORE: Self = _

source

pub const ESTONIAN_ESTONIA: Self = _

source

pub const FAEROESE_FAROE_ISLANDS: Self = _

source

pub const FILIPINO_PHILIPPINES: Self = _

source

pub const FINNISH_FINLAND: Self = _

source

pub const FRENCH: Self = _

source

pub const FRENCH_BELGIAN: Self = _

source

pub const FRENCH_CANADIAN: Self = _

source

pub const FRENCH_SWISS: Self = _

source

pub const FRENCH_LUXEMBOURG: Self = _

source

pub const FRENCH_MONACO: Self = _

source

pub const FRISIAN_NETHERLANDS: Self = _

source

pub const FULAH_SENEGAL: Self = _

source

pub const GALICIAN_GALICIAN: Self = _

source

pub const GEORGIAN_GEORGIA: Self = _

source

pub const GERMAN: Self = _

source

pub const GERMAN_SWISS: Self = _

source

pub const GERMAN_AUSTRIAN: Self = _

source

pub const GERMAN_LUXEMBOURG: Self = _

source

pub const GERMAN_LIECHTENSTEIN: Self = _

source

pub const GREEK_GREECE: Self = _

source

pub const GREENLANDIC_GREENLAND: Self = _

source

pub const GUJARATI_INDIA: Self = _

source

pub const HAUSA_NIGERIA_LATIN: Self = _

source

pub const HAWAIIAN_US: Self = _

source

pub const HEBREW_ISRAEL: Self = _

source

pub const HINDI_INDIA: Self = _

source

pub const HUNGARIAN_HUNGARY: Self = _

source

pub const ICELANDIC_ICELAND: Self = _

source

pub const IGBO_NIGERIA: Self = _

source

pub const INDONESIAN_INDONESIA: Self = _

source

pub const INUKTITUT_CANADA: Self = _

source

pub const INUKTITUT_CANADA_LATIN: Self = _

source

pub const IRISH_IRELAND: Self = _

source

pub const ITALIAN: Self = _

source

pub const ITALIAN_SWISS: Self = _

source

pub const JAPANESE_JAPAN: Self = _

source

pub const KANNADA_INDIA: Self = _

source

pub const KASHMIRI_SASIA: Self = _

source

pub const KASHMIRI_INDIA: Self = _

source

pub const KAZAK_KAZAKHSTAN: Self = _

source

pub const KHMER_CAMBODIA: Self = _

source

pub const KICHE_GUATEMALA: Self = _

source

pub const KINYARWANDA_RWANDA: Self = _

source

pub const KONKANI_INDIA: Self = _

source

pub const KOREAN: Self = _

source

pub const KYRGYZ_KYRGYZSTAN: Self = _

source

pub const LAO_LAO: Self = _

source

pub const LATVIAN_LATVIA: Self = _

source

pub const LITHUANIAN: Self = _

source

pub const LOWER_SORBIAN_GERMANY: Self = _

source

pub const LUXEMBOURGISH_LUXEMBOURG: Self = _

source

pub const MACEDONIAN_MACEDONIA: Self = _

source

pub const MALAY_MALAYSIA: Self = _

source

pub const MALAY_BRUNEI_DARUSSALAM: Self = _

source

pub const MALAYALAM_INDIA: Self = _

source

pub const MALTESE_MALTA: Self = _

source

pub const MAORI_NEW_ZEALAND: Self = _

source

pub const MAPUDUNGUN_CHILE: Self = _

source

pub const MARATHI_INDIA: Self = _

source

pub const MOHAWK_MOHAWK: Self = _

source

pub const MONGOLIAN_CYRILLIC_MONGOLIA: Self = _

source

pub const MONGOLIAN_PRC: Self = _

source

pub const NEPALI_INDIA: Self = _

source

pub const NEPALI_NEPAL: Self = _

source

pub const NORWEGIAN_BOKMAL: Self = _

source

pub const NORWEGIAN_NYNORSK: Self = _

source

pub const OCCITAN_FRANCE: Self = _

source

pub const ODIA_INDIA: Self = _

source

pub const ORIYA_INDIA: Self = _

source

pub const PASHTO_AFGHANISTAN: Self = _

source

pub const PERSIAN_IRAN: Self = _

source

pub const POLISH_POLAND: Self = _

source

pub const PORTUGUESE: Self = _

source

pub const PORTUGUESE_BRAZILIAN: Self = _

source

pub const PULAR_SENEGAL: Self = _

source

pub const PUNJABI_INDIA: Self = _

source

pub const PUNJABI_PAKISTAN: Self = _

source

pub const QUECHUA_BOLIVIA: Self = _

source

pub const QUECHUA_ECUADOR: Self = _

source

pub const QUECHUA_PERU: Self = _

source

pub const ROMANIAN_ROMANIA: Self = _

source

pub const ROMANSH_SWITZERLAND: Self = _

source

pub const RUSSIAN_RUSSIA: Self = _

source

pub const SAKHA_RUSSIA: Self = _

source

pub const SAMI_NORTHERN_NORWAY: Self = _

source

pub const SAMI_NORTHERN_SWEDEN: Self = _

source

pub const SAMI_NORTHERN_FINLAND: Self = _

source

pub const SAMI_LULE_NORWAY: Self = _

source

pub const SAMI_LULE_SWEDEN: Self = _

source

pub const SAMI_SOUTHERN_NORWAY: Self = _

source

pub const SAMI_SOUTHERN_SWEDEN: Self = _

source

pub const SAMI_SKOLT_FINLAND: Self = _

source

pub const SAMI_INARI_FINLAND: Self = _

source

pub const SANSKRIT_INDIA: Self = _

source

pub const SCOTTISH_GAELIC: Self = _

source

pub const SERBIAN_BOSNIA_HERZEGOVINA_LATIN: Self = _

source

pub const SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC: Self = _

source

pub const SERBIAN_MONTENEGRO_LATIN: Self = _

source

pub const SERBIAN_MONTENEGRO_CYRILLIC: Self = _

source

pub const SERBIAN_SERBIA_LATIN: Self = _

source

pub const SERBIAN_SERBIA_CYRILLIC: Self = _

source

pub const SERBIAN_CROATIA: Self = _

source

pub const SERBIAN_LATIN: Self = _

source

pub const SERBIAN_CYRILLIC: Self = _

source

pub const SINDHI_INDIA: Self = _

source

pub const SINDHI_PAKISTAN: Self = _

source

pub const SINDHI_AFGHANISTAN: Self = _

source

pub const SINHALESE_SRI_LANKA: Self = _

source

pub const SOTHO_NORTHERN_SOUTH_AFRICA: Self = _

source

pub const SLOVAK_SLOVAKIA: Self = _

source

pub const SLOVENIAN_SLOVENIA: Self = _

source

pub const SPANISH: Self = _

source

pub const SPANISH_MEXICAN: Self = _

source

pub const SPANISH_MODERN: Self = _

source

pub const SPANISH_GUATEMALA: Self = _

source

pub const SPANISH_COSTA_RICA: Self = _

source

pub const SPANISH_PANAMA: Self = _

source

pub const SPANISH_DOMINICAN_REPUBLIC: Self = _

source

pub const SPANISH_VENEZUELA: Self = _

source

pub const SPANISH_COLOMBIA: Self = _

source

pub const SPANISH_PERU: Self = _

source

pub const SPANISH_ARGENTINA: Self = _

source

pub const SPANISH_ECUADOR: Self = _

source

pub const SPANISH_CHILE: Self = _

source

pub const SPANISH_URUGUAY: Self = _

source

pub const SPANISH_PARAGUAY: Self = _

source

pub const SPANISH_BOLIVIA: Self = _

source

pub const SPANISH_EL_SALVADOR: Self = _

source

pub const SPANISH_HONDURAS: Self = _

source

pub const SPANISH_NICARAGUA: Self = _

source

pub const SPANISH_PUERTO_RICO: Self = _

source

pub const SPANISH_US: Self = _

source

pub const SWAHILI_KENYA: Self = _

source

pub const SWEDISH: Self = _

source

pub const SWEDISH_FINLAND: Self = _

source

pub const SYRIAC_SYRIA: Self = _

source

pub const TAJIK_TAJIKISTAN: Self = _

source

pub const TAMAZIGHT_ALGERIA_LATIN: Self = _

source

pub const TAMAZIGHT_MOROCCO_TIFINAGH: Self = _

source

pub const TAMIL_INDIA: Self = _

source

pub const TAMIL_SRI_LANKA: Self = _

source

pub const TATAR_RUSSIA: Self = _

source

pub const TELUGU_INDIA: Self = _

source

pub const THAI_THAILAND: Self = _

source

pub const TIBETAN_PRC: Self = _

source

pub const TIGRIGNA_ERITREA: Self = _

source

pub const TIGRINYA_ERITREA: Self = _

source

pub const TIGRINYA_ETHIOPIA: Self = _

source

pub const TSWANA_BOTSWANA: Self = _

source

pub const TSWANA_SOUTH_AFRICA: Self = _

source

pub const TURKISH_TURKEY: Self = _

source

pub const TURKMEN_TURKMENISTAN: Self = _

source

pub const UIGHUR_PRC: Self = _

source

pub const UKRAINIAN_UKRAINE: Self = _

source

pub const UPPER_SORBIAN_GERMANY: Self = _

source

pub const URDU_PAKISTAN: Self = _

source

pub const URDU_INDIA: Self = _

source

pub const UZBEK_LATIN: Self = _

source

pub const UZBEK_CYRILLIC: Self = _

source

pub const VALENCIAN_VALENCIA: Self = _

source

pub const VIETNAMESE_VIETNAM: Self = _

source

pub const WELSH_UNITED_KINGDOM: Self = _

source

pub const WOLOF_SENEGAL: Self = _

source

pub const XHOSA_SOUTH_AFRICA: Self = _

source

pub const YAKUT_RUSSIA: Self = _

source

pub const YI_PRC: Self = _

source

pub const YORUBA_NIGERIA: Self = _

source

pub const ZULU_SOUTH_AFRICA: Self = _

Trait Implementations§

source§

impl AsRef<u16> for SUBLANG

source§

fn as_ref(&self) -> &u16

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Binary for SUBLANG

source§

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

Formats the value using the given formatter.
source§

impl Clone for SUBLANG

source§

fn clone(&self) -> SUBLANG

Returns a copy 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 SUBLANG

source§

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

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

impl Default for SUBLANG

source§

fn default() -> SUBLANG

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

impl Display for SUBLANG

source§

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

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

impl From<SUBLANG> for u16

source§

fn from(v: SUBLANG) -> Self

Converts to this type from the input type.
source§

impl Hash for SUBLANG

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntUnderlying for SUBLANG

§

type Raw = u16

The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for SUBLANG

source§

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

Formats the value using the given formatter.
source§

impl Octal for SUBLANG

source§

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

Formats the value using the given formatter.
source§

impl Ord for SUBLANG

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SUBLANG

source§

fn eq(&self, other: &SUBLANG) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SUBLANG

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl UpperHex for SUBLANG

source§

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

Formats the value using the given formatter.
source§

impl Copy for SUBLANG

source§

impl Eq for SUBLANG

source§

impl NativeConst for SUBLANG

source§

impl Send for SUBLANG

source§

impl StructuralPartialEq for SUBLANG

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T> ToOwned for T
where T: Clone,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

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

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

§

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>,

§

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.