Enum unicode_script::Script[][src]

#[non_exhaustive]
#[repr(u8)]
pub enum Script {
Show variants Unknown, Common, Inherited, Adlam, Caucasian_Albanian, Ahom, Arabic, Imperial_Aramaic, Armenian, Avestan, Balinese, Bamum, Bassa_Vah, Batak, Bengali, Bhaiksuki, Bopomofo, Brahmi, Braille, Buginese, Buhid, Chakma, Canadian_Aboriginal, Carian, Cham, Cherokee, Chorasmian, Coptic, Cypriot, Cyrillic, Devanagari, Dives_Akuru, Dogra, Deseret, Duployan, Egyptian_Hieroglyphs, Elbasan, Elymaic, Ethiopic, Georgian, Glagolitic, Gunjala_Gondi, Masaram_Gondi, Gothic, Grantha, Greek, Gujarati, Gurmukhi, Hangul, Han, Hanunoo, Hatran, Hebrew, Hiragana, Anatolian_Hieroglyphs, Pahawh_Hmong, Nyiakeng_Puachue_Hmong, Old_Hungarian, Old_Italic, Javanese, Kayah_Li, Katakana, Kharoshthi, Khmer, Khojki, Khitan_Small_Script, Kannada, Kaithi, Tai_Tham, Lao, Latin, Lepcha, Limbu, Linear_A, Linear_B, Lisu, Lycian, Lydian, Mahajani, Makasar, Mandaic, Manichaean, Marchen, Medefaidrin, Mende_Kikakui, Meroitic_Cursive, Meroitic_Hieroglyphs, Malayalam, Modi, Mongolian, Mro, Meetei_Mayek, Multani, Myanmar, Nandinagari, Old_North_Arabian, Nabataean, Newa, Nko, Nushu, Ogham, Ol_Chiki, Old_Turkic, Oriya, Osage, Osmanya, Palmyrene, Pau_Cin_Hau, Old_Permic, Phags_Pa, Inscriptional_Pahlavi, Psalter_Pahlavi, Phoenician, Miao, Inscriptional_Parthian, Rejang, Hanifi_Rohingya, Runic, Samaritan, Old_South_Arabian, Saurashtra, SignWriting, Shavian, Sharada, Siddham, Khudawadi, Sinhala, Sogdian, Old_Sogdian, Sora_Sompeng, Soyombo, Sundanese, Syloti_Nagri, Syriac, Tagbanwa, Takri, Tai_Le, New_Tai_Lue, Tamil, Tangut, Tai_Viet, Telugu, Tifinagh, Tagalog, Thaana, Thai, Tibetan, Tirhuta, Ugaritic, Vai, Warang_Citi, Wancho, Old_Persian, Cuneiform, Yezidi, Yi, Zanabazar_Square,
}
Expand description

A value of the Script property

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown

Unknown script

Common

Zyyy

Inherited

Zinh,

Adlam

Adlm

Caucasian_Albanian

Aghb

Ahom

Ahom

Arabic

Arab

Imperial_Aramaic

Armi

Armenian

Armn

Avestan

Avst

Balinese

Bali

Bamum

Bamu

Bassa_Vah

Bass

Batak

Batk

Bengali

Beng

Bhaiksuki

Bhks

Bopomofo

Bopo

Brahmi

Brah

Braille

Brai

Buginese

Bugi

Buhid

Buhd

Chakma

Cakm

Canadian_Aboriginal

Cans

Carian

Cari

Cham

Cham

Cherokee

Cher

Chorasmian

Chrs

Coptic

Copt

Cypriot

Cprt

Cyrillic

Cyrl

Devanagari

Deva

Dives_Akuru

Diak

Dogra

Dogr

Deseret

Dsrt

Duployan

Dupl

Egyptian_Hieroglyphs

Egyp

Elbasan

Elba

Elymaic

Elym

Ethiopic

Ethi

Georgian

Geor

Glagolitic

Glag

Gunjala_Gondi

Gong

Masaram_Gondi

Gonm

Gothic

Goth

Grantha

Gran

Greek

Grek

Gujarati

Gujr

Gurmukhi

Guru

Hangul

Hang

Han

Hani

Hanunoo

Hano

Hatran

Hatr

Hebrew

Hebr

Hiragana

Hira

Anatolian_Hieroglyphs

Hluw

Pahawh_Hmong

Hmng

Nyiakeng_Puachue_Hmong

Hmnp

Old_Hungarian

Hung

Old_Italic

Ital

Javanese

Java

Kayah_Li

Kali

Katakana

Kana

Kharoshthi

Khar

Khmer

Khmr

Khojki

Khoj

Khitan_Small_Script

Kits

Kannada

Knda

Kaithi

Kthi

Tai_Tham

Lana

Lao

Laoo

Latin

Latn

Lepcha

Lepc

Limbu

Limb

Linear_A

Lina

Linear_B

Linb

Lisu

Lisu

Lycian

Lyci

Lydian

Lydi

Mahajani

Mahj

Makasar

Maka

Mandaic

Mand

Manichaean

Mani

Marchen

Marc

Medefaidrin

Medf

Mende_Kikakui

Mend

Meroitic_Cursive

Merc

Meroitic_Hieroglyphs

Mero

Malayalam

Mlym

Modi

Modi

Mongolian

Mong

Mro

Mroo

Meetei_Mayek

Mtei

Multani

Mult

Myanmar

Mymr

Nandinagari

Nand

Old_North_Arabian

Narb

Nabataean

Nbat

Newa

Newa

Nko

Nkoo

Nushu

Nshu

Ogham

Ogam

Ol_Chiki

Olck

Old_Turkic

Orkh

Oriya

Orya

Osage

Osge

Osmanya

Osma

Palmyrene

Palm

Pau_Cin_Hau

Pauc

Old_Permic

Perm

Phags_Pa

Phag

Inscriptional_Pahlavi

Phli

Psalter_Pahlavi

Phlp

Phoenician

Phnx

Miao

Plrd

Inscriptional_Parthian

Prti

Rejang

Rjng

Hanifi_Rohingya

Rohg

Runic

Runr

Samaritan

Samr

Old_South_Arabian

Sarb

Saurashtra

Saur

SignWriting

Sgnw

Shavian

Shaw

Sharada

Shrd

Siddham

Sidd

Khudawadi

Sind

Sinhala

Sinh

Sogdian

Sogd

Old_Sogdian

Sogo

Sora_Sompeng

Sora

Soyombo

Soyo

Sundanese

Sund

Syloti_Nagri

Sylo

Syriac

Syrc

Tagbanwa

Tagb

Takri

Takr

Tai_Le

Tale

New_Tai_Lue

Talu

Tamil

Taml

Tangut

Tang

Tai_Viet

Tavt

Telugu

Telu

Tifinagh

Tfng

Tagalog

Tglg

Thaana

Thaa

Thai

Thai

Tibetan

Tibt

Tirhuta

Tirh

Ugaritic

Ugar

Vai

Vaii

Warang_Citi

Wara

Wancho

Wcho

Old_Persian

Xpeo

Cuneiform

Xsux

Yezidi

Yezi

Yi

Yiii

Zanabazar_Square

Zanb

Implementations

Get the full name of a script.

Attempts to parse script name from the provided string. Returns None if the provided string does not represent a valid script full name.

Get the four-character short name of a script.

Attempts to parse script name from the provided string. Returns None if the provided string does not represent a valid script four-character short name.

Is this script “Recommended” according to UAX #31?

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.