ScriptLanguage

Enum ScriptLanguage 

Source
#[repr(usize)]
pub enum ScriptLanguage {
Show 431 variants English = 0, Spanish = 1, French = 2, Indonesian = 3, Portuguese = 4, German = 5, NigerianPidgin = 6, Swahili = 7, Vietnamese = 8, Hausa = 9, Turkish = 10, Filipino = 11, Javanese = 12, Italian = 13, UzbekNorthern = 14, Yoruba = 15, Igbo = 16, Polish = 17, Lingala = 18, Sundanese = 19, Malay = 20, Zulu = 21, Dutch = 22, Somali = 23, Romanian = 24, Xhosa = 25, Cebuano = 26, Afrikaans = 27, KikongoKituba = 28, Wolof = 29, KurdishNorthern = 30, FulfuldeNigerian = 31, Sepedi = 32, Kinyarwanda = 33, LubaKasai = 34, Bambara = 35, Sesotho = 36, Shona = 37, Hungarian = 38, Czech = 39, Dyula = 40, Rundi = 41, Swedish = 42, CreoleHaitian = 43, Ganda = 44, Mossi = 45, Banjar = 46, Ilocano = 47, AzerbaijaniNorth = 48, MalagasyPlateau = 49, OromoSouthern = 50, OromoWestCentral = 51, Catalan = 52, KanuriCentral = 53, Tswana = 54, Turkmen = 55, Slovak = 56, Tsonga = 57, Tumbuka = 58, Nyanja = 59, AkanTwi = 60, Umbundu = 61, Kikuyu = 62, Croatian = 63, GuaraniParaguayan = 64, FulaPulaar = 65, Minangkabau = 66, Danish = 67, Kamba = 68, Sicilian = 69, Finnish = 70, Ewe = 71, FulaPular = 72, Swati = 73, Dholuo = 74, Bemba = 75, TokPisin = 76, Buginese = 77, NorwegianBokmal = 78, NorwegianNynorsk = 79, Venetian = 80, Lombard = 81, Waray = 82, Balinese = 83, Kabyle = 84, Lithuanian = 85, Acehnese = 86, AkanFante = 87, Bosnian = 88, Slovenian = 89, Chokwe = 90, Galician = 91, Fon = 92, Esperanto = 93, Serer = 94, AlbanianTosk = 95, DinkaSouthwestern = 96, Pangasinan = 97, Irish = 98, Kimbundu = 99, Nuer = 100, AymaraCentral = 101, Latvian = 102, Limburgish = 103, Estonian = 104, Mandailing = 105, Kabiye = 106, Sardinian = 107, Mizo = 108, Jingpho = 109, QuechuaAyacucho = 110, TamasheqLatin = 111, Kabuverdianu = 112, Occitan = 113, Basque = 114, Fijian = 115, Welsh = 116, Sango = 117, Asturian = 118, Ligurian = 119, Friulian = 120, Maltese = 121, Silesian = 122, Samoan = 123, Luxembourgish = 124, Papiamento = 125, Icelandic = 126, Latgalian = 127, Faroese = 128, GaelicScottish = 129, TatarCrimean = 130, Maori = 131, SamiNorthern = 132, Hawaiian = 133, Latin = 134, UnknownLatin = 135, ChineseMandarinSimplified = 136, Japanese = 137, ChineseMandarinTraditional = 138, ChineseCantoneseTraditional = 139, Korean = 140, Arabic = 141, Urdu = 142, ArabicEgyptian = 143, PersianFarsi = 144, ArabicNorthLevantine = 145, ArabicSouthLevantine = 146, ArabicSudanese = 147, ArabicMoroccan = 148, Sindhi = 149, PersianDari = 150, Saraiki = 151, ArabicNajdi = 152, PashtoSouthern = 153, ArabicMesopotamian = 154, PunjabiEasternShahmukhi = 155, AzerbaijaniSouth = 156, ArabicTunisian = 157, Uyghur = 158, ArabicSouthernYemeni = 159, BanjarJawi = 160, KanuriCentralAjami = 161, Kashmiri = 162, KurdishCentral = 163, KurdishSouthern = 164, AcehneseJawi = 165, DogriPersoArabic = 166, MathArabic = 167, Hindi = 168, Marathi = 169, Bhojpuri = 170, Awadhi = 171, SindhiDevanagari = 172, Nepali = 173, Maithili = 174, Chhattisgarhi = 175, Magahi = 176, Dogri = 177, KashmiriDevanagari = 178, SaurashtraDevanagari = 179, Wancho = 180, Sanskrit = 181, SanskritVedic = 182, MathDevanagari = 183, Russian = 184, Ukrainian = 185, Kazakh = 186, Serbian = 187, Tajik = 188, Bulgarian = 189, Kyrgyz = 190, MongolianKhalkha = 191, Belarusian = 192, Tatar = 193, Macedonian = 194, Chechen = 195, Bashkir = 196, Chuvash = 197, Ossetian = 198, MariEastern = 199, Buryat = 200, Abkhaz = 201, Nenets = 202, ChurchSlavonicOld = 203, UnknownCyrillic = 204, Bengali = 205, Assamese = 206, MeiteiBengali = 207, BishnupriyaManipuri = 208, MathBengali = 209, Thai = 210, Isan = 211, NorthernThai = 212, Kannada = 213, Tulu = 214, Amharic = 215, Tigrinya = 216, Geez = 217, Burmese = 218, Shan = 219, KarenSgaw = 220, Mon = 221, Odia = 222, Sambalpuri = 223, Khmer = 224, KhmerNorthern = 225, Manding = 226, BambaraNko = 227, NorthernThaiTaiTham = 228, LaoTaiTham = 229, TaiLue = 230, Hebrew = 231, YiddishEastern = 232, BugineseBuginese = 233, MakassareseBuginese = 234, TobaBatak = 235, Pakpak = 236, Simalungun = 237, Angkola = 238, Karo = 239, MandailingBatak = 240, FulaPularAdlam = 241, TamazightCentralAtlas = 242, Tibetan = 243, Dzongkha = 244, TaiDam = 245, TaiDon = 246, ChamEastern = 247, ChamWestern = 248, Cree = 249, Ojibwe = 250, Inuktitut = 251, MongolianKhalkhaMongolian = 252, OiratMongolian = 253, MongolianBuryat = 254, KayahEastern = 255, KayahWestern = 256, KutchiKhojki = 257, SindhiKhojki = 258, MiddlePersianManichaean = 259, SogdianManichaean = 260, AramaicSamaritan = 261, HebrewSamaritan = 262, DogriTakri = 263, DogriKangriTakri = 264, KashmiriTakri = 265, TuluTigalari = 266, KannadaTuluTigalari = 267, SanskritTuluTigalari = 268, Prakrit = 269, SanskritBrahmi = 270, Akkadian = 271, Hittite = 272, LuwianCuneiform = 273, Sumerian = 274, EnglishDuployan = 275, FrenchDuployan = 276, TamilGrantha = 277, SanskritGrantha = 278, BhojpuriKaithi = 279, HindiKaithi = 280, MagahiKaithi = 281, MaithiliKaithi = 282, OldJavanese = 283, SanskritKawi = 284, HindiMahajani = 285, MarwariMahajani = 286, PunjabiEasternMahajani = 287, Etruscan = 288, Oscan = 289, Umbrian = 290, KomiZyrianOldPermic = 291, KomiPermyakOldPermic = 292, MongolianKhalkhaPhagsPa = 293, TibetanPhagsPa = 294, OldEnglishRunic = 295, OldNorse = 296, KashmiriSharada = 297, SanskritSharada = 298, TibetanSoyombo = 299, MongolianKhalkhaSoyombo = 300, SanskritSoyombo = 301, MongolianKhalkhaZanabazarSquare = 302, TibetanZanabazarSquare = 303, SanskritZanabazarSquare = 304, MathBraille = 305, UnknownBraille = 306, Ahom = 307, AlbanianElbasan = 308, AlbanianTodhri = 309, AlbanianToskVithkuqi = 310, AncientGreek = 311, AncientNorthArabian = 312, AncientSouthArabian = 313, AramaicElymaic = 314, AramaicHatran = 315, AramaicImperial = 316, AramaicMandaic = 317, AramaicNabataean = 318, AramaicPalmyrene = 319, AramaicSyriac = 320, Armenian = 321, Avestan = 322, BalineseBalinese = 323, Bamum = 324, Bantawa = 325, Bassa = 326, Bhumij = 327, Buhid = 328, Carian = 329, CaucasianAlbanian = 330, Chakma = 331, Cherokee = 332, ChineseMandarinBopomofo = 333, ChineseTuhua = 334, Chorasmian = 335, ChurchSlavonicOldGlagolitic = 336, Coptic = 337, Dhivehi = 338, DhivehiDivesAkuru = 339, DogriDogra = 340, EgyptianHieroglyphs = 341, EnglishDeseret = 342, EnglishShavian = 343, FilipinoTagalog = 344, Gandhari = 345, Georgian = 346, GondiGunjala = 347, GondiMasaram = 348, Gothic = 349, Greek = 350, Gujarati = 351, GurungKhema = 352, Hanunoo = 353, HmongMiao = 354, HmongNyiakengPuachue = 355, HmongPahawh = 356, HoWarangCiti = 357, HungarianOld = 358, JavaneseJavanese = 359, Khitan = 360, KurdishNorthernYezidi = 361, KurukhTolongSiki = 362, Lao = 363, Lepcha = 364, Limbu = 365, Lisu = 366, LuwianHieroglyphic = 367, Lycian = 368, Lydian = 369, MaithiliTirhuta = 370, MakassareseMakasar = 371, Malayalam = 372, MarathiModi = 373, Medefaidrin = 374, MeiteiMeeteiMayek = 375, Mende = 376, MeroiticCursive = 377, MeroiticHieroglyphs = 378, MiddlePersianPahlaviInscriptional = 379, MiddlePersianPahlaviPsalter = 380, Minoan = 381, MinoanLinearA = 382, Mro = 383, Mundari = 384, MycenaeanGreek = 385, Newar = 386, Nuosu = 387, OldIrishOgham = 388, OldPersian = 389, OldTurkic = 390, OldUyghur = 391, Osage = 392, Parthian = 393, Phoenician = 394, PunjabiEastern = 395, RejangRejang = 396, Rohingya = 397, SanskritBhaiksuki = 398, SanskritNandinagari = 399, SanskritSiddham = 400, Santali = 401, SaraikiMultani = 402, SaurashtraSaurashtra = 403, Sidetic = 404, SignLanguages = 405, SindhiKhudawadi = 406, Sinhala = 407, Sogdian = 408, SogdianOld = 409, SomaliOsmanya = 410, Sora = 411, SundaneseSundanese = 412, Sunuwar = 413, Sylheti = 414, Tagbanwa = 415, TaiLueNew = 416, TaiNuea = 417, TaiYoLaiTay = 418, Tamil = 419, Tangsa = 420, Tangut = 421, Tedim = 422, Telugu = 423, Toto = 424, Ugaritic = 425, Vai = 426, WanchoWancho = 427, WolofGaray = 428, ZaghawaBeriaErfe = 429, Zhangzhung = 430,
}
Expand description

Language + script. Ordered by total speakers. Value-names not always represent a script used, so a “default” script can be changed. Int representation is unstable and can be changed anytime. Parts representation (const into_parts/from_parts) or code representation (const into_code/from_code) or string representation (const into_str/from_str) are more stable.

Variants§

§

English = 0

§

Spanish = 1

§

French = 2

§

Indonesian = 3

§

Portuguese = 4

§

German = 5

§

NigerianPidgin = 6

§

Swahili = 7

§

Vietnamese = 8

§

Hausa = 9

§

Turkish = 10

§

Filipino = 11

§

Javanese = 12

§

Italian = 13

§

UzbekNorthern = 14

§

Yoruba = 15

§

Igbo = 16

§

Polish = 17

§

Lingala = 18

§

Sundanese = 19

§

Malay = 20

§

Zulu = 21

§

Dutch = 22

§

Somali = 23

§

Romanian = 24

§

Xhosa = 25

§

Cebuano = 26

§

Afrikaans = 27

§

KikongoKituba = 28

§

Wolof = 29

§

KurdishNorthern = 30

§

FulfuldeNigerian = 31

§

Sepedi = 32

§

Kinyarwanda = 33

§

LubaKasai = 34

§

Bambara = 35

§

Sesotho = 36

§

Shona = 37

§

Hungarian = 38

§

Czech = 39

§

Dyula = 40

§

Rundi = 41

§

Swedish = 42

§

CreoleHaitian = 43

§

Ganda = 44

§

Mossi = 45

§

Banjar = 46

§

Ilocano = 47

§

AzerbaijaniNorth = 48

§

MalagasyPlateau = 49

§

OromoSouthern = 50

§

OromoWestCentral = 51

§

Catalan = 52

§

KanuriCentral = 53

§

Tswana = 54

§

Turkmen = 55

§

Slovak = 56

§

Tsonga = 57

§

Tumbuka = 58

§

Nyanja = 59

§

AkanTwi = 60

§

Umbundu = 61

§

Kikuyu = 62

§

Croatian = 63

§

GuaraniParaguayan = 64

§

FulaPulaar = 65

§

Minangkabau = 66

§

Danish = 67

§

Kamba = 68

§

Sicilian = 69

§

Finnish = 70

§

Ewe = 71

§

FulaPular = 72

§

Swati = 73

§

Dholuo = 74

§

Bemba = 75

§

TokPisin = 76

§

Buginese = 77

§

NorwegianBokmal = 78

§

NorwegianNynorsk = 79

§

Venetian = 80

§

Lombard = 81

§

Waray = 82

§

Balinese = 83

§

Kabyle = 84

§

Lithuanian = 85

§

Acehnese = 86

§

AkanFante = 87

§

Bosnian = 88

§

Slovenian = 89

§

Chokwe = 90

§

Galician = 91

§

Fon = 92

§

Esperanto = 93

§

Serer = 94

§

AlbanianTosk = 95

§

DinkaSouthwestern = 96

§

Pangasinan = 97

§

Irish = 98

§

Kimbundu = 99

§

Nuer = 100

§

AymaraCentral = 101

§

Latvian = 102

§

Limburgish = 103

§

Estonian = 104

§

Mandailing = 105

§

Kabiye = 106

§

Sardinian = 107

§

Mizo = 108

§

Jingpho = 109

§

QuechuaAyacucho = 110

§

TamasheqLatin = 111

§

Kabuverdianu = 112

§

Occitan = 113

§

Basque = 114

§

Fijian = 115

§

Welsh = 116

§

Sango = 117

§

Asturian = 118

§

Ligurian = 119

§

Friulian = 120

§

Maltese = 121

§

Silesian = 122

§

Samoan = 123

§

Luxembourgish = 124

§

Papiamento = 125

§

Icelandic = 126

§

Latgalian = 127

§

Faroese = 128

§

GaelicScottish = 129

§

TatarCrimean = 130

§

Maori = 131

§

SamiNorthern = 132

§

Hawaiian = 133

§

Latin = 134

§

UnknownLatin = 135

§

ChineseMandarinSimplified = 136

§

Japanese = 137

§

ChineseMandarinTraditional = 138

§

ChineseCantoneseTraditional = 139

§

Korean = 140

§

Arabic = 141

§

Urdu = 142

§

ArabicEgyptian = 143

§

PersianFarsi = 144

§

ArabicNorthLevantine = 145

§

ArabicSouthLevantine = 146

§

ArabicSudanese = 147

§

ArabicMoroccan = 148

§

Sindhi = 149

§

PersianDari = 150

§

Saraiki = 151

§

ArabicNajdi = 152

§

PashtoSouthern = 153

§

ArabicMesopotamian = 154

§

PunjabiEasternShahmukhi = 155

§

AzerbaijaniSouth = 156

§

ArabicTunisian = 157

§

Uyghur = 158

§

ArabicSouthernYemeni = 159

§

BanjarJawi = 160

§

KanuriCentralAjami = 161

§

Kashmiri = 162

§

KurdishCentral = 163

§

KurdishSouthern = 164

§

AcehneseJawi = 165

§

DogriPersoArabic = 166

§

MathArabic = 167

§

Hindi = 168

§

Marathi = 169

§

Bhojpuri = 170

§

Awadhi = 171

§

SindhiDevanagari = 172

§

Nepali = 173

§

Maithili = 174

§

Chhattisgarhi = 175

§

Magahi = 176

§

Dogri = 177

§

KashmiriDevanagari = 178

§

SaurashtraDevanagari = 179

§

Wancho = 180

§

Sanskrit = 181

§

SanskritVedic = 182

§

MathDevanagari = 183

§

Russian = 184

§

Ukrainian = 185

§

Kazakh = 186

§

Serbian = 187

§

Tajik = 188

§

Bulgarian = 189

§

Kyrgyz = 190

§

MongolianKhalkha = 191

§

Belarusian = 192

§

Tatar = 193

§

Macedonian = 194

§

Chechen = 195

§

Bashkir = 196

§

Chuvash = 197

§

Ossetian = 198

§

MariEastern = 199

§

Buryat = 200

§

Abkhaz = 201

§

Nenets = 202

§

ChurchSlavonicOld = 203

§

UnknownCyrillic = 204

§

Bengali = 205

§

Assamese = 206

§

MeiteiBengali = 207

§

BishnupriyaManipuri = 208

§

MathBengali = 209

§

Thai = 210

§

Isan = 211

§

NorthernThai = 212

§

Kannada = 213

§

Tulu = 214

§

Amharic = 215

§

Tigrinya = 216

§

Geez = 217

§

Burmese = 218

§

Shan = 219

§

KarenSgaw = 220

§

Mon = 221

§

Odia = 222

§

Sambalpuri = 223

§

Khmer = 224

§

KhmerNorthern = 225

§

Manding = 226

§

BambaraNko = 227

§

NorthernThaiTaiTham = 228

§

LaoTaiTham = 229

§

TaiLue = 230

§

Hebrew = 231

§

YiddishEastern = 232

§

BugineseBuginese = 233

§

MakassareseBuginese = 234

§

TobaBatak = 235

§

Pakpak = 236

§

Simalungun = 237

§

Angkola = 238

§

Karo = 239

§

MandailingBatak = 240

Historical

§

FulaPularAdlam = 241

§

TamazightCentralAtlas = 242

§

Tibetan = 243

§

Dzongkha = 244

§

TaiDam = 245

§

TaiDon = 246

§

ChamEastern = 247

§

ChamWestern = 248

§

Cree = 249

§

Ojibwe = 250

§

Inuktitut = 251

§

MongolianKhalkhaMongolian = 252

§

OiratMongolian = 253

§

MongolianBuryat = 254

§

KayahEastern = 255

§

KayahWestern = 256

§

KutchiKhojki = 257

§

SindhiKhojki = 258

Historical

§

MiddlePersianManichaean = 259

§

SogdianManichaean = 260

§

AramaicSamaritan = 261

§

HebrewSamaritan = 262

§

DogriTakri = 263

§

DogriKangriTakri = 264

§

KashmiriTakri = 265

§

TuluTigalari = 266

§

KannadaTuluTigalari = 267

§

SanskritTuluTigalari = 268

§

Prakrit = 269

§

SanskritBrahmi = 270

§

Akkadian = 271

§

Hittite = 272

§

LuwianCuneiform = 273

§

Sumerian = 274

§

EnglishDuployan = 275

shorthand systems for English

§

FrenchDuployan = 276

§

TamilGrantha = 277

Historical

§

SanskritGrantha = 278

§

BhojpuriKaithi = 279

Historical

§

HindiKaithi = 280

Historical

§

MagahiKaithi = 281

Historical

§

MaithiliKaithi = 282

Historical

§

OldJavanese = 283

§

SanskritKawi = 284

§

HindiMahajani = 285

Historical

§

MarwariMahajani = 286

Historical

§

PunjabiEasternMahajani = 287

Historical

§

Etruscan = 288

§

Oscan = 289

§

Umbrian = 290

§

KomiZyrianOldPermic = 291

§

KomiPermyakOldPermic = 292

§

MongolianKhalkhaPhagsPa = 293

Historical

§

TibetanPhagsPa = 294

Historical

§

OldEnglishRunic = 295

§

OldNorse = 296

§

KashmiriSharada = 297

Liturgical

§

SanskritSharada = 298

§

TibetanSoyombo = 299

Historical

§

MongolianKhalkhaSoyombo = 300

Historical

§

SanskritSoyombo = 301

§

MongolianKhalkhaZanabazarSquare = 302

Historical

§

TibetanZanabazarSquare = 303

Historical

§

SanskritZanabazarSquare = 304

§

MathBraille = 305

§

UnknownBraille = 306

any language adapted to Braille

§

Ahom = 307

§

AlbanianElbasan = 308

Historical

§

AlbanianTodhri = 309

Historical

§

AlbanianToskVithkuqi = 310

§

AncientGreek = 311

§

AncientNorthArabian = 312

§

AncientSouthArabian = 313

§

AramaicElymaic = 314

§

AramaicHatran = 315

§

AramaicImperial = 316

§

AramaicMandaic = 317

§

AramaicNabataean = 318

§

AramaicPalmyrene = 319

§

AramaicSyriac = 320

§

Armenian = 321

§

Avestan = 322

§

BalineseBalinese = 323

§

Bamum = 324

§

Bantawa = 325

§

Bassa = 326

§

Bhumij = 327

§

Buhid = 328

§

Carian = 329

§

CaucasianAlbanian = 330

§

Chakma = 331

§

Cherokee = 332

§

ChineseMandarinBopomofo = 333

§

ChineseTuhua = 334

§

Chorasmian = 335

§

ChurchSlavonicOldGlagolitic = 336

§

Coptic = 337

§

Dhivehi = 338

§

DhivehiDivesAkuru = 339

Historical

§

DogriDogra = 340

§

EgyptianHieroglyphs = 341

§

EnglishDeseret = 342

§

EnglishShavian = 343

§

FilipinoTagalog = 344

§

Gandhari = 345

§

Georgian = 346

§

GondiGunjala = 347

§

GondiMasaram = 348

§

Gothic = 349

§

Greek = 350

§

Gujarati = 351

§

GurungKhema = 352

§

Hanunoo = 353

§

HmongMiao = 354

§

HmongNyiakengPuachue = 355

§

HmongPahawh = 356

§

HoWarangCiti = 357

§

HungarianOld = 358

§

JavaneseJavanese = 359

§

Khitan = 360

§

KurdishNorthernYezidi = 361

§

KurukhTolongSiki = 362

§

Lao = 363

§

Lepcha = 364

§

Limbu = 365

§

Lisu = 366

§

LuwianHieroglyphic = 367

§

Lycian = 368

§

Lydian = 369

§

MaithiliTirhuta = 370

§

MakassareseMakasar = 371

Historical

§

Malayalam = 372

§

MarathiModi = 373

§

Medefaidrin = 374

§

MeiteiMeeteiMayek = 375

§

Mende = 376

§

MeroiticCursive = 377

§

MeroiticHieroglyphs = 378

§

MiddlePersianPahlaviInscriptional = 379

§

MiddlePersianPahlaviPsalter = 380

§

Minoan = 381

§

MinoanLinearA = 382

§

Mro = 383

§

Mundari = 384

§

MycenaeanGreek = 385

§

Newar = 386

§

Nuosu = 387

§

OldIrishOgham = 388

§

OldPersian = 389

§

OldTurkic = 390

§

OldUyghur = 391

§

Osage = 392

§

Parthian = 393

§

Phoenician = 394

§

PunjabiEastern = 395

§

RejangRejang = 396

Historical

§

Rohingya = 397

§

SanskritBhaiksuki = 398

§

SanskritNandinagari = 399

§

SanskritSiddham = 400

§

Santali = 401

§

SaraikiMultani = 402

§

SaurashtraSaurashtra = 403

§

Sidetic = 404

§

SignLanguages = 405

§

SindhiKhudawadi = 406

§

Sinhala = 407

§

Sogdian = 408

§

SogdianOld = 409

§

SomaliOsmanya = 410

§

Sora = 411

§

SundaneseSundanese = 412

§

Sunuwar = 413

§

Sylheti = 414

§

Tagbanwa = 415

§

TaiLueNew = 416

§

TaiNuea = 417

§

TaiYoLaiTay = 418

§

Tamil = 419

§

Tangsa = 420

§

Tangut = 421

§

Tedim = 422

§

Telugu = 423

§

Toto = 424

§

Ugaritic = 425

§

Vai = 426

§

WanchoWancho = 427

§

WolofGaray = 428

§

ZaghawaBeriaErfe = 429

§

Zhangzhung = 430

Implementations§

Source§

impl ScriptLanguage

Source

pub const fn into_parts(self) -> (Language, Script)

Source

pub const fn into_str(self) -> &'static str

ISO 639-3 + ISO 15924 codes string

Source

pub const fn into_code(self) -> u32

30-bit code (compacted ISO 639-3 code, ISO 15924 number)

Source

pub const fn from_code(v: u32) -> Option<Self>

30-bit code (compacted ISO 639-3 code, ISO 15924 number)

Source

pub const fn from_parts(v: (Language, Script)) -> Option<Self>

Source

pub const fn from_bytes(v: &[u8]) -> Option<Self>

ISO 639-3 + ISO 15924 codes string

Source

pub const fn from_str(s: &str) -> Option<Self>

ISO 639-3 + ISO 15924 codes string

Source§

impl ScriptLanguage

Source

pub const HASH: u64

Source

pub fn all() -> impl Iterator<Item = Self>

Returns an iterator of all ScriptLanguages

Source

pub fn all_with_script(script: UcdScript) -> &'static [Self]

Returns all ScriptLanguages supporting selected UcdScript

Source

pub const unsafe fn transmute_from_usize(v: usize) -> Self

§Safety

Must be a valid value of ScriptLanguage.

Trait Implementations§

Source§

impl Clone for ScriptLanguage

Source§

fn clone(&self) -> ScriptLanguage

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 ScriptLanguage

Source§

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

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

impl<'de> Deserialize<'de> for ScriptLanguage

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl EnumCount for ScriptLanguage

Source§

const COUNT: usize = 431usize

Source§

impl From<ScriptLanguage> for Language

Source§

fn from(sl: ScriptLanguage) -> Self

Converts to this type from the input type.
Source§

impl From<ScriptLanguage> for Script

Source§

fn from(sl: ScriptLanguage) -> Self

Converts to this type from the input type.
Source§

impl From<ScriptLanguage> for UcdScript

Source§

fn from(sl: ScriptLanguage) -> Self

Converts to this type from the input type.
Source§

impl Hash for ScriptLanguage

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 IntoEnumIterator for ScriptLanguage

Source§

impl<'py> IntoPyObject<'py> for ScriptLanguage

Source§

type Target = ScriptLanguage

The Python output type
Source§

type Output = Bound<'py, <ScriptLanguage as IntoPyObject<'py>>::Target>

The smart pointer type to use. Read more
Source§

type Error = PyErr

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

fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>

Performs the conversion.
Source§

impl Ord for ScriptLanguage

Source§

fn cmp(&self, other: &ScriptLanguage) -> 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,

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

impl PartialEq for ScriptLanguage

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ScriptLanguage

Source§

fn partial_cmp(&self, other: &ScriptLanguage) -> 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

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

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

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

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

impl PyClass for ScriptLanguage

Source§

type Frozen = True

Whether the pyclass is frozen. Read more
Source§

impl PyClassImpl for ScriptLanguage

Source§

const IS_BASETYPE: bool = false

#[pyclass(subclass)]
Source§

const IS_SUBCLASS: bool = false

#[pyclass(extends=…)]
Source§

const IS_MAPPING: bool = false

#[pyclass(mapping)]
Source§

const IS_SEQUENCE: bool = false

#[pyclass(sequence)]
Source§

const IS_IMMUTABLE_TYPE: bool = false

#[pyclass(immutable_type)]
Source§

const RAW_DOC: &'static CStr = /// Language + script. Ordered by total speakers. /// Value-names not always represent a script used, so a "default" script can be changed. /// Int representation is unstable and can be changed anytime. /// Parts representation (const /// [`into_parts`](enum.ScriptLanguage.html#method.into_parts)/[`from_parts`](enum.ScriptLanguage.html#method.from_parts)) /// or code representation (const /// [`into_code`](enum.ScriptLanguage.html#method.into_code)/[`from_code`](enum.ScriptLanguage.html#method.from_code)) /// or string representation (const /// [`into_str`](enum.ScriptLanguage.html#method.into_str)/[`from_str`](enum.ScriptLanguage.html#method.from_str)) /// are more stable.

Docstring for the class provided on the struct or enum. Read more
Source§

const DOC: &'static CStr

Fully rendered class doc, including the text_signature if a constructor is defined. Read more
Source§

type BaseType = PyAny

Base class
Source§

type ThreadChecker = SendablePyClass<ScriptLanguage>

This handles following two situations: Read more
Source§

type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild

Immutable or mutable
Source§

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.
Source§

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.
Source§

type BaseNativeType = PyAny

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it’s PyDict.
Source§

fn items_iter() -> PyClassItemsIter

Source§

fn lazy_type_object() -> &'static LazyTypeObject<Self>

Source§

fn dict_offset() -> Option<isize>

Source§

fn weaklist_offset() -> Option<isize>

Source§

impl PyTypeInfo for ScriptLanguage

Source§

const NAME: &'static str = "ScriptLanguage"

Class name.
Source§

const MODULE: Option<&'static str> = ::core::option::Option::None

Module name, if any.
Source§

fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
Source§

fn type_object(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
Source§

fn is_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
Source§

fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
Source§

impl Serialize for ScriptLanguage

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<i128> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: i128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: i64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<isize> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: isize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u128> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: u128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: u64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for ScriptLanguage

Source§

type Error = &'static str

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

fn try_from(v: usize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ScriptLanguage

Source§

impl Eq for ScriptLanguage

Source§

impl ExtractPyClassWithClone for ScriptLanguage

Source§

impl StructuralPartialEq for ScriptLanguage

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<'a, 'py, T> FromPyObject<'a, 'py> for T
where T: PyClass + Clone + ExtractPyClassWithClone,

Source§

type Error = PyClassGuardError<'a, 'py>

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

fn extract( obj: Borrowed<'a, 'py, PyAny>, ) -> Result<T, <T as FromPyObject<'a, 'py>>::Error>

Extracts Self from the bound smart pointer obj. 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<'py, T> IntoPyObjectExt<'py> for T
where T: IntoPyObject<'py>,

Source§

fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>

Converts self into an owned Python object, dropping type information.
Source§

fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>

Converts self into an owned Python object, dropping type information and unbinding it from the 'py lifetime.
Source§

fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>

Converts self into a Python object. Read more
Source§

impl<T> PyErrArguments for T
where T: for<'py> IntoPyObject<'py> + Send + Sync,

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception
Source§

impl<T> PyTypeCheck for T
where T: PyTypeInfo,

Source§

const NAME: &'static str = T::NAME

👎Deprecated since 0.27.0: Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
Name of self. This is used in error messages, for example.
Source§

fn type_check(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of Self, which may include a subtype. Read more
Source§

fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>

Returns the expected type as a possible argument for the isinstance and issubclass function. 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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<'py, T> FromPyObjectOwned<'py> for T
where T: for<'a> FromPyObject<'a, 'py>,

Source§

impl<T> Ungil for T
where T: Send,