Skip to main content

Script

Enum Script 

Source
#[repr(i32)]
pub enum Script {
Show 176 variants Unknown = 0, Common = 1, Inherited = 2, Adlam = 3, CaucasianAlbanian = 4, Ahom = 5, Arabic = 6, ImperialAramaic = 7, Armenian = 8, Avestan = 9, Balinese = 10, Bamum = 11, BassaVah = 12, Batak = 13, Bengali = 14, BeriaErfe = 15, Bhaiksuki = 16, Bopomofo = 17, Brahmi = 18, Braille = 19, Buginese = 20, Buhid = 21, Chakma = 22, CanadianAboriginal = 23, Carian = 24, Cham = 25, Cherokee = 26, Chorasmian = 27, Coptic = 28, CyproMinoan = 29, Cypriot = 30, Cyrillic = 31, Devanagari = 32, DivesAkuru = 33, Dogra = 34, Deseret = 35, Duployan = 36, EgyptianHieroglyphs = 37, Elbasan = 38, Elymaic = 39, Ethiopic = 40, Garay = 41, Georgian = 42, Glagolitic = 43, GunjalaGondi = 44, MasaramGondi = 45, Gothic = 46, Grantha = 47, Greek = 48, Gujarati = 49, GurungKhema = 50, Gurmukhi = 51, Hangul = 52, Han = 53, Hanunoo = 54, Hatran = 55, Hebrew = 56, Hiragana = 57, AnatolianHieroglyphs = 58, PahawhHmong = 59, NyiakengPuachueHmong = 60, KatakanaOrHiragana = 61, OldHungarian = 62, OldItalic = 63, Javanese = 64, KayahLi = 65, Katakana = 66, Kawi = 67, Kharoshthi = 68, Khmer = 69, Khojki = 70, KhitanSmallScript = 71, Kannada = 72, KiratRai = 73, Kaithi = 74, TaiTham = 75, Lao = 76, Latin = 77, Lepcha = 78, Limbu = 79, LinearA = 80, LinearB = 81, Lisu = 82, Lycian = 83, Lydian = 84, Mahajani = 85, Makasar = 86, Mandaic = 87, Manichaean = 88, Marchen = 89, Medefaidrin = 90, MendeKikakui = 91, MeroiticCursive = 92, MeroiticHieroglyphs = 93, Malayalam = 94, Modi = 95, Mongolian = 96, Mro = 97, MeeteiMayek = 98, Multani = 99, Myanmar = 100, NagMundari = 101, Nandinagari = 102, OldNorthArabian = 103, Nabataean = 104, Newa = 105, Nko = 106, Nushu = 107, Ogham = 108, OlChiki = 109, OlOnal = 110, OldTurkic = 111, Oriya = 112, Osage = 113, Osmanya = 114, OldUyghur = 115, Palmyrene = 116, PauCinHau = 117, OldPermic = 118, PhagsPa = 119, InscriptionalPahlavi = 120, PsalterPahlavi = 121, Phoenician = 122, Miao = 123, InscriptionalParthian = 124, Rejang = 125, HanifiRohingya = 126, Runic = 127, Samaritan = 128, OldSouthArabian = 129, Saurashtra = 130, SignWriting = 131, Shavian = 132, Sharada = 133, Siddham = 134, Sidetic = 135, Khudawadi = 136, Sinhala = 137, Sogdian = 138, OldSogdian = 139, SoraSompeng = 140, Soyombo = 141, Sundanese = 142, Sunuwar = 143, SylotiNagri = 144, Syriac = 145, Tagbanwa = 146, Takri = 147, TaiLe = 148, NewTaiLue = 149, Tamil = 150, Tangut = 151, TaiViet = 152, TaiYo = 153, Telugu = 154, Tifinagh = 155, Tagalog = 156, Thaana = 157, Thai = 158, Tibetan = 159, Tirhuta = 160, Tangsa = 161, Todhri = 162, TolongSiki = 163, Toto = 164, TuluTigalari = 165, Ugaritic = 166, Vai = 167, Vithkuqi = 168, WarangCiti = 169, Wancho = 170, OldPersian = 171, Cuneiform = 172, Yezidi = 173, Yi = 174, ZanabazarSquare = 175,
}
Expand description

The Unicode Script property values, numbered as the generated tries store them.

Variants§

§

Unknown = 0

Property value alias: Zzzz

§

Common = 1

Property value alias: Zyyy

§

Inherited = 2

Property value alias: Zinh

§

Adlam = 3

Property value alias: Adlm

§

CaucasianAlbanian = 4

Property value alias: Aghb

§

Ahom = 5

Property value alias: Ahom

§

Arabic = 6

Property value alias: Arab

§

ImperialAramaic = 7

Property value alias: Armi

§

Armenian = 8

Property value alias: Armn

§

Avestan = 9

Property value alias: Avst

§

Balinese = 10

Property value alias: Bali

§

Bamum = 11

Property value alias: Bamu

§

BassaVah = 12

Property value alias: Bass

§

Batak = 13

Property value alias: Batk

§

Bengali = 14

Property value alias: Beng

§

BeriaErfe = 15

Property value alias: Berf

§

Bhaiksuki = 16

Property value alias: Bhks

§

Bopomofo = 17

Property value alias: Bopo

§

Brahmi = 18

Property value alias: Brah

§

Braille = 19

Property value alias: Brai

§

Buginese = 20

Property value alias: Bugi

§

Buhid = 21

Property value alias: Buhd

§

Chakma = 22

Property value alias: Cakm

§

CanadianAboriginal = 23

Property value alias: Cans

§

Carian = 24

Property value alias: Cari

§

Cham = 25

Property value alias: Cham

§

Cherokee = 26

Property value alias: Cher

§

Chorasmian = 27

Property value alias: Chrs

§

Coptic = 28

Property value alias: Copt

§

CyproMinoan = 29

Property value alias: Cpmn

§

Cypriot = 30

Property value alias: Cprt

§

Cyrillic = 31

Property value alias: Cyrl

§

Devanagari = 32

Property value alias: Deva

§

DivesAkuru = 33

Property value alias: Diak

§

Dogra = 34

Property value alias: Dogr

§

Deseret = 35

Property value alias: Dsrt

§

Duployan = 36

Property value alias: Dupl

§

EgyptianHieroglyphs = 37

Property value alias: Egyp

§

Elbasan = 38

Property value alias: Elba

§

Elymaic = 39

Property value alias: Elym

§

Ethiopic = 40

Property value alias: Ethi

§

Garay = 41

Property value alias: Gara

§

Georgian = 42

Property value alias: Geor

§

Glagolitic = 43

Property value alias: Glag

§

GunjalaGondi = 44

Property value alias: Gong

§

MasaramGondi = 45

Property value alias: Gonm

§

Gothic = 46

Property value alias: Goth

§

Grantha = 47

Property value alias: Gran

§

Greek = 48

Property value alias: Grek

§

Gujarati = 49

Property value alias: Gujr

§

GurungKhema = 50

Property value alias: Gukh

§

Gurmukhi = 51

Property value alias: Guru

§

Hangul = 52

Property value alias: Hang

§

Han = 53

Property value alias: Hani

§

Hanunoo = 54

Property value alias: Hano

§

Hatran = 55

Property value alias: Hatr

§

Hebrew = 56

Property value alias: Hebr

§

Hiragana = 57

Property value alias: Hira

§

AnatolianHieroglyphs = 58

Property value alias: Hluw

§

PahawhHmong = 59

Property value alias: Hmng

§

NyiakengPuachueHmong = 60

Property value alias: Hmnp

§

KatakanaOrHiragana = 61

Property value alias: Hrkt

§

OldHungarian = 62

Property value alias: Hung

§

OldItalic = 63

Property value alias: Ital

§

Javanese = 64

Property value alias: Java

§

KayahLi = 65

Property value alias: Kali

§

Katakana = 66

Property value alias: Kana

§

Kawi = 67

Property value alias: Kawi

§

Kharoshthi = 68

Property value alias: Khar

§

Khmer = 69

Property value alias: Khmr

§

Khojki = 70

Property value alias: Khoj

§

KhitanSmallScript = 71

Property value alias: Kits

§

Kannada = 72

Property value alias: Knda

§

KiratRai = 73

Property value alias: Krai

§

Kaithi = 74

Property value alias: Kthi

§

TaiTham = 75

Property value alias: Lana

§

Lao = 76

Property value alias: Laoo

§

Latin = 77

Property value alias: Latn

§

Lepcha = 78

Property value alias: Lepc

§

Limbu = 79

Property value alias: Limb

§

LinearA = 80

Property value alias: Lina

§

LinearB = 81

Property value alias: Linb

§

Lisu = 82

Property value alias: Lisu

§

Lycian = 83

Property value alias: Lyci

§

Lydian = 84

Property value alias: Lydi

§

Mahajani = 85

Property value alias: Mahj

§

Makasar = 86

Property value alias: Maka

§

Mandaic = 87

Property value alias: Mand

§

Manichaean = 88

Property value alias: Mani

§

Marchen = 89

Property value alias: Marc

§

Medefaidrin = 90

Property value alias: Medf

§

MendeKikakui = 91

Property value alias: Mend

§

MeroiticCursive = 92

Property value alias: Merc

§

MeroiticHieroglyphs = 93

Property value alias: Mero

§

Malayalam = 94

Property value alias: Mlym

§

Modi = 95

Property value alias: Modi

§

Mongolian = 96

Property value alias: Mong

§

Mro = 97

Property value alias: Mroo

§

MeeteiMayek = 98

Property value alias: Mtei

§

Multani = 99

Property value alias: Mult

§

Myanmar = 100

Property value alias: Mymr

§

NagMundari = 101

Property value alias: Nagm

§

Nandinagari = 102

Property value alias: Nand

§

OldNorthArabian = 103

Property value alias: Narb

§

Nabataean = 104

Property value alias: Nbat

§

Newa = 105

Property value alias: Newa

§

Nko = 106

Property value alias: Nkoo

§

Nushu = 107

Property value alias: Nshu

§

Ogham = 108

Property value alias: Ogam

§

OlChiki = 109

Property value alias: Olck

§

OlOnal = 110

Property value alias: Onao

§

OldTurkic = 111

Property value alias: Orkh

§

Oriya = 112

Property value alias: Orya

§

Osage = 113

Property value alias: Osge

§

Osmanya = 114

Property value alias: Osma

§

OldUyghur = 115

Property value alias: Ougr

§

Palmyrene = 116

Property value alias: Palm

§

PauCinHau = 117

Property value alias: Pauc

§

OldPermic = 118

Property value alias: Perm

§

PhagsPa = 119

Property value alias: Phag

§

InscriptionalPahlavi = 120

Property value alias: Phli

§

PsalterPahlavi = 121

Property value alias: Phlp

§

Phoenician = 122

Property value alias: Phnx

§

Miao = 123

Property value alias: Plrd

§

InscriptionalParthian = 124

Property value alias: Prti

§

Rejang = 125

Property value alias: Rjng

§

HanifiRohingya = 126

Property value alias: Rohg

§

Runic = 127

Property value alias: Runr

§

Samaritan = 128

Property value alias: Samr

§

OldSouthArabian = 129

Property value alias: Sarb

§

Saurashtra = 130

Property value alias: Saur

§

SignWriting = 131

Property value alias: Sgnw

§

Shavian = 132

Property value alias: Shaw

§

Sharada = 133

Property value alias: Shrd

§

Siddham = 134

Property value alias: Sidd

§

Sidetic = 135

Property value alias: Sidt

§

Khudawadi = 136

Property value alias: Sind

§

Sinhala = 137

Property value alias: Sinh

§

Sogdian = 138

Property value alias: Sogd

§

OldSogdian = 139

Property value alias: Sogo

§

SoraSompeng = 140

Property value alias: Sora

§

Soyombo = 141

Property value alias: Soyo

§

Sundanese = 142

Property value alias: Sund

§

Sunuwar = 143

Property value alias: Sunu

§

SylotiNagri = 144

Property value alias: Sylo

§

Syriac = 145

Property value alias: Syrc

§

Tagbanwa = 146

Property value alias: Tagb

§

Takri = 147

Property value alias: Takr

§

TaiLe = 148

Property value alias: Tale

§

NewTaiLue = 149

Property value alias: Talu

§

Tamil = 150

Property value alias: Taml

§

Tangut = 151

Property value alias: Tang

§

TaiViet = 152

Property value alias: Tavt

§

TaiYo = 153

Property value alias: Tayo

§

Telugu = 154

Property value alias: Telu

§

Tifinagh = 155

Property value alias: Tfng

§

Tagalog = 156

Property value alias: Tglg

§

Thaana = 157

Property value alias: Thaa

§

Thai = 158

Property value alias: Thai

§

Tibetan = 159

Property value alias: Tibt

§

Tirhuta = 160

Property value alias: Tirh

§

Tangsa = 161

Property value alias: Tnsa

§

Todhri = 162

Property value alias: Todr

§

TolongSiki = 163

Property value alias: Tols

§

Toto = 164

Property value alias: Toto

§

TuluTigalari = 165

Property value alias: Tutg

§

Ugaritic = 166

Property value alias: Ugar

§

Vai = 167

Property value alias: Vaii

§

Vithkuqi = 168

Property value alias: Vith

§

WarangCiti = 169

Property value alias: Wara

§

Wancho = 170

Property value alias: Wcho

§

OldPersian = 171

Property value alias: Xpeo

§

Cuneiform = 172

Property value alias: Xsux

§

Yezidi = 173

Property value alias: Yezi

§

Yi = 174

Property value alias: Yiii

§

ZanabazarSquare = 175

Property value alias: Zanb

Implementations§

Source§

impl Script

Source

pub const COUNT: usize = 176

The number of values.

Source

pub const fn from_u32(value: u32) -> Self

Converts the numeric value stored in the generated tries (the cast upstream performs). Values outside of the enum map to Unknown (value 0).

Trait Implementations§

Source§

impl Clone for Script

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Script

Source§

impl Debug for Script

Source§

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

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

impl Default for Script

Source§

fn default() -> Self

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

impl Eq for Script

Source§

impl Hash for Script

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 Ord for Script

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

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

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

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for Script

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for Script

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 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for Script

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> AnyValue for T
where T: PartialEq + 'static,

Source§

fn any_value_as_any(&self) -> &(dyn Any + 'static)

Source§

fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool

Source§

fn any_value_type_name(&self) -> &'static str

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> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). 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<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> PropertyValue for T
where T: Clone + PartialEq + 'static,

Source§

impl<T> ResourceKeyObject for T
where T: Eq + Hash + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn dyn_eq(&self, other: &(dyn ResourceKeyObject + 'static)) -> bool

Source§

fn dyn_hash(&self, state: &mut dyn Hasher)

Source§

fn key_type_name(&self) -> &'static str

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> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.