Enum ScriptLanguage

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

Language + script. 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 (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.
§

Acehnese = 0

§

AcehneseJawi = 1

§

Afrikaans = 2

§

Ahom = 3

§

Akan = 4

§

Akkadian = 5

§

AlbanianElbasan = 6

Historical

§

AlbanianTodhri = 7

Historical

§

AlbanianTosk = 8

§

AlbanianToskVithkuqi = 9

§

Amharic = 10

§

AncientGreek = 11

§

AncientNorthArabian = 12

§

AncientSouthArabian = 13

§

Angkola = 14

§

Arabic = 15

§

ArabicEgyptian = 16

§

ArabicMesopotamian = 17

§

ArabicMoroccan = 18

§

ArabicNajdi = 19

§

ArabicNorthLevantine = 20

§

ArabicSouthernYemeni = 21

§

ArabicSouthLevantine = 22

§

ArabicTunisian = 23

§

AramaicElymaic = 24

§

AramaicHatran = 25

§

AramaicImperial = 26

§

AramaicMandaic = 27

§

AramaicNabataean = 28

§

AramaicPalmyrene = 29

§

AramaicSamaritan = 30

§

AramaicSyriac = 31

§

Armenian = 32

§

Assamese = 33

§

Asturian = 34

§

Avestan = 35

§

Awadhi = 36

§

AymaraCentral = 37

§

AzerbaijaniNorth = 38

§

AzerbaijaniSouth = 39

§

Balinese = 40

§

BalineseBalinese = 41

§

Bambara = 42

§

Bamum = 43

§

Banjar = 44

§

BanjarJawi = 45

§

Bantawa = 46

§

Bashkir = 47

§

Basque = 48

§

Bassa = 49

§

Belarusian = 50

§

Bemba = 51

§

Bengali = 52

§

Bhojpuri = 53

§

BhojpuriKaithi = 54

§

Bhumij = 55

§

BishnupriyaManipuri = 56

§

Bosnian = 57

§

Braille = 58

any language adapted to Braille

§

Buginese = 59

§

BugineseBuginese = 60

§

Buhid = 61

§

Bulgarian = 62

§

Burmese = 63

§

Carian = 64

§

Catalan = 65

§

CaucasianAlbanian = 66

§

Cebuano = 67

§

Chakma = 68

§

ChamEastern = 69

§

ChamWestern = 70

§

Cherokee = 71

§

Chhattisgarhi = 72

§

ChineseCantoneseTraditional = 73

§

ChineseMandarinBopomofo = 74

§

ChineseSimplified = 75

§

ChineseTraditional = 76

§

ChineseTuhua = 77

§

Chokwe = 78

§

Chorasmian = 79

§

ChurchSlavonicOld = 80

§

ChurchSlavonicOldGlagolitic = 81

§

Chuvash = 82

§

Coptic = 83

§

Cree = 84

§

CreoleHaitian = 85

§

Croatian = 86

§

Czech = 87

§

Danish = 88

§

Dhivehi = 89

§

DhivehiDivesAkuru = 90

Historical

§

Dholuo = 91

§

DinkaSouthwestern = 92

§

Dogri = 93

§

DogriDogra = 94

§

DogriPersoArabic = 95

§

DogriTakri = 96

§

Dutch = 97

§

Dyula = 98

§

Dzongkha = 99

§

EgyptianHieroglyphs = 100

§

English = 101

§

EnglishDeseret = 102

§

EnglishDuployan = 103

shorthand systems for English

§

EnglishShavian = 104

§

Esperanto = 105

§

Estonian = 106

§

Etruscan = 107

§

Ewe = 108

§

Faroese = 109

§

Fijian = 110

§

Finnish = 111

§

Fon = 112

§

French = 113

§

FrenchDuployan = 114

§

Friulian = 115

§

Fulani = 116

§

FulfuldeNigerian = 117

§

GaelicScottish = 118

§

Galician = 119

§

Ganda = 120

§

Gandhari = 121

§

Geez = 122

§

Georgian = 123

§

German = 124

§

GondiGunjala = 125

§

GondiMasaram = 126

§

Gothic = 127

§

Greek = 128

§

Guarani = 129

§

Gujarati = 130

§

GurungKhema = 131

§

Hanunoo = 132

§

Hausa = 133

§

Hawaiian = 134

§

Hebrew = 135

§

HebrewSamaritan = 136

§

Hindi = 137

§

HindiKaithi = 138

§

HindiMahajani = 139

§

Hittite = 140

§

HmongMiao = 141

§

HmongNyiakengPuachue = 142

§

HmongPahawh = 143

§

HoWarangCiti = 144

§

Hungarian = 145

§

HungarianOld = 146

§

Icelandic = 147

§

Igbo = 148

§

Ilocano = 149

§

Indonesian = 150

§

Inuktitut = 151

§

Irish = 152

§

Italian = 153

§

Japanese = 154

§

Javanese = 155

§

JavaneseJavanese = 156

§

Jingpho = 157

§

Kabiye = 158

§

Kabuverdianu = 159

§

Kabyle = 160

§

Kamba = 161

§

Kannada = 162

§

KannadaTuluTigalari = 163

§

KanuriCentral = 164

§

KanuriCentralAjami = 165

§

Karo = 166

§

Kashmiri = 167

§

KashmiriDevanagari = 168

§

KashmiriSharada = 169

§

KashmiriTakri = 170

§

KayahEastern = 171

§

KayahWestern = 172

§

Kazakh = 173

§

Khitan = 174

§

Khmer = 175

§

Kikongo = 176

§

Kikuyu = 177

§

Kimbundu = 178

§

Kinyarwanda = 179

§

KomiOldPermic = 180

§

Korean = 181

§

KurdishCentral = 182

§

KurdishNorthern = 183

§

KurdishNorthernYezidi = 184

§

KurdishSouthern = 185

§

KutchiKhojki = 186

§

Kyrgyz = 187

§

Lao = 188

§

LaoTaiTham = 189

§

Latgalian = 190

§

Latin = 191

§

Latvian = 192

§

Lepcha = 193

§

Ligurian = 194

§

Limbu = 195

§

Limburgish = 196

§

Lingala = 197

§

Lisu = 198

§

Lithuanian = 199

§

Loloish = 200

§

Lombard = 201

§

LubaKasai = 202

§

LuwianCuneiform = 203

§

LuwianHieroglyphic = 204

§

Luxembourgish = 205

§

Lycian = 206

§

Lydian = 207

§

Macedonian = 208

§

Magahi = 209

§

MagahiKaithi = 210

§

Maithili = 211

§

MaithiliKaithi = 212

§

MaithiliTirhuta = 213

§

MakassareseBuginese = 214

§

MakassareseMakasar = 215

Historical

§

Malay = 216

§

Malayalam = 217

§

MalgasyPlateau = 218

§

Maltese = 219

§

Mandailing = 220

§

MandailingBatak = 221

Historical

§

Manding = 222

§

Maori = 223

§

Marathi = 224

§

MarathiBrahmi = 225

§

MarathiModi = 226

§

Marwari = 227

§

Medefaidrin = 228

§

MeiteiBengali = 229

§

MeiteiMeeteiMayek = 230

§

Mende = 231

§

MeroiticCursive = 232

§

MeroiticHieroglyphs = 233

§

MiddlePersianManichaean = 234

§

MiddlePersianPahlaviInscriptional = 235

§

MiddlePersianPahlaviPsalter = 236

§

Minangkabau = 237

§

Minoan = 238

§

MinoanLinearA = 239

§

Mizo = 240

§

MongolianHalh = 241

§

MongolianHalhMongolian = 242

§

MongolianHalhPhagsPa = 243

§

MongolianHalhSoyombo = 244

§

MongolianHalhZanabazarSquare = 245

§

Mossi = 246

§

Mro = 247

§

Mundari = 248

§

MycenaeanGreek = 249

§

Nepali = 250

§

Newar = 251

§

NorthernThai = 252

§

NorwegianBokmal = 253

§

NorwegianNynorsk = 254

§

Nuer = 255

§

Nyanja = 256

§

Occitan = 257

§

Odia = 258

§

Ojibwe = 259

§

OldEnglish = 260

§

OldIrish = 261

§

OldJavanese = 262

§

OldNorse = 263

§

OldPersian = 264

§

OldTurkic = 265

§

OldUyghur = 266

§

OromoSouthern = 267

§

OromoWestCentral = 268

§

Osage = 269

§

Oscan = 270

§

Pakpak = 271

§

Pangasinan = 272

§

Papiamento = 273

§

Parthian = 274

§

PashtoSouthern = 275

§

PersianDari = 276

§

PersianWestern = 277

§

Phoenician = 278

§

Polish = 279

§

Portuguese = 280

§

Prakrit = 281

§

Pular = 282

§

PularAdlam = 283

§

PunjabiEastern = 284

§

PunjabiEasternMahajani = 285

§

PunjabiEasternShahmukhi = 286

§

QuechuaAyacucho = 287

§

RejangRejang = 288

Historical

§

Rohingya = 289

§

Romanian = 290

§

Rundi = 291

§

Russian = 292

§

Samoan = 293

§

Sango = 294

§

Sanskrit = 295

§

SanskritBhaiksuki = 296

§

SanskritBrahmi = 297

§

SanskritGrantha = 298

§

SanskritKawi = 299

§

SanskritNandinagari = 300

§

SanskritSharada = 301

§

SanskritSiddham = 302

§

SanskritSoyombo = 303

§

SanskritTuluTigalari = 304

§

SanskritZanabazarSquare = 305

§

Santali = 306

§

Saraiki = 307

§

SaraikiMultani = 308

§

Sardinian = 309

§

SaurashtraDevanagari = 310

§

SaurashtraSaurashtra = 311

§

Sepedi = 312

§

Serbian = 313

§

Sesotho = 314

§

Shan = 315

§

Shona = 316

§

Sicilian = 317

§

SignLanguages = 318

§

Silesian = 319

§

Simalungun = 320

§

Sindhi = 321

§

SindhiDevanagari = 322

§

SindhiKhojki = 323

§

SindhiKhudawadi = 324

§

Sinhala = 325

§

Slovak = 326

§

Slovene = 327

§

Sogdian = 328

§

SogdianManichaean = 329

§

SogdianOld = 330

§

Somali = 331

§

SomaliOsmanya = 332

§

Sora = 333

§

Spanish = 334

§

Sumerian = 335

§

Sundanese = 336

§

SundaneseSundanese = 337

§

Sunuwar = 338

§

Swahili = 339

§

Swati = 340

§

Swedish = 341

§

Sylheti = 342

§

Tagalog = 343

§

TagalogTagalog = 344

§

Tagbanwa = 345

§

TaiDam = 346

§

TaiDon = 347

§

TaiLue = 348

§

TaiLueNew = 349

§

TaiNuea = 350

§

Tajik = 351

§

TamasheqLatin = 352

§

TamasheqTifinagh = 353

§

TamazightCentralAtlas = 354

§

Tamil = 355

§

TamilGrantha = 356

§

Tangsa = 357

§

Tangut = 358

§

Tatar = 359

§

TatarCrimean = 360

§

Tedim = 361

§

Telugu = 362

§

Thai = 363

§

Tibetan = 364

§

TibetanPhagsPa = 365

§

TibetanSoyombo = 366

§

TibetanZanabazarSquare = 367

§

Tigrinya = 368

§

TobaBatak = 369

§

TokPisin = 370

§

Toto = 371

§

Tsonga = 372

§

Tswana = 373

§

Tulu = 374

§

TuluTigalari = 375

§

Tumbuka = 376

§

Turkish = 377

§

Turkmen = 378

§

Twi = 379

§

Ugaritic = 380

§

Ukrainian = 381

§

Umbrian = 382

§

Umbundu = 383

§

Urdu = 384

§

Uyghur = 385

§

UzbekNorthern = 386

§

Vai = 387

§

Venetian = 388

§

Vietnamese = 389

§

Wancho = 390

§

WanchoWancho = 391

§

Waray = 392

§

Welsh = 393

§

Wolof = 394

§

WolofGaray = 395

§

Xhosa = 396

§

YiddishEastern = 397

§

Yoruba = 398

§

Zhangzhung = 399

§

Zulu = 400

Implementations§

Source§

impl ScriptLanguage

Source

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

Source

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

Source

pub const fn into_code(self) -> u32

30-bit code

Source

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

30-bit code

Source

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

Source

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

Source

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

Source§

impl ScriptLanguage

Source

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

Returns an iterator of all ScriptLanguages

Source

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

Returns all ScriptLanguages supporting selected UcdScript

Source

pub fn transmute_from_usize(v: usize) -> ScriptLanguage

Trait Implementations§

Source§

impl Clone for ScriptLanguage

Source§

fn clone(&self) -> ScriptLanguage

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 ScriptLanguage

Source§

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

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

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

Source§

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

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

impl EnumCount for ScriptLanguage

Source§

const COUNT: usize = 401usize

Source§

impl Hash for ScriptLanguage

Source§

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

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

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::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<ScriptLanguage, <ScriptLanguage as TryFrom<i128>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<i32>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<i64>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<isize>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<u128>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<u32>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<u64>>::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<ScriptLanguage, <ScriptLanguage as TryFrom<usize>>::Error>

Performs the conversion.
Source§

impl Copy for ScriptLanguage

Source§

impl Eq 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<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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<T> ErasedDestructor for T
where T: 'static,