Skip to main content

ScriptRef

Enum ScriptRef 

pub enum ScriptRef<'a> {
Show 227 variants Adlam, Afaka, CaucasianAlbanian, Ahom, Arabic, ArabicNastaliq, ImperialAramaic, Armenian, Avestan, Balinese, Bamum, BassaVah, Batak, Bengali, BeriaErfe, Bhaiksuki, Blissymbols, Bopomofo, Brahmi, Braille, Buginese, Buhid, Chakma, UnifiedCanadianAboriginalSyllabics, Carian, Cham, Cherokee, Chisoi, Chorasmian, Cirth, Coptic, CyproMinoan, CypriotSyllabary, Cyrillic, CyrillicOldChurchSlavonic, Devanagari, DivesAkuru, Dogra, Deseret, DuployanShorthand, EgyptianDemotic, EgyptianHieratic, EgyptianHieroglyphs, Elbasan, Elymaic, Ethiopic, Garay, Khutsuri, Georgian, Glagolitic, GunjalaGondi, MasaramGondi, Gothic, Grantha, Greek, Gujarati, GurungKhema, Gurmukhi, HanWithBopomofo, Hangul, Han, Hanunoo, HanSimplified, HanTraditional, Hatran, Hebrew, Hiragana, AnatolianHieroglyphs, PahawhHmong, NyiakengPuachueHmong, HanWithLatin, JapaneseSyllabaries, OldHungarian, Indus, OldItalic, Jamo, Javanese, Japanese, Jurchen, KayahLi, Katakana, Kawi, Kharoshthi, Khmer, Khojki, KhitanLargeScript, KhitanSmallScript, Kannada, Korean, Kpelle, KiratRai, Kaithi, TaiTham, Lao, LatinFraktur, LatinGaelic, Latin, Leke, Lepcha, Limbu, LinearA, LinearB, Lisu, Loma, Lycian, Lydian, Mahajani, Makasar, Mandaic, Manichaean, Marchen, MayanHieroglyphs, Medefaidrin, MendeKikakui, MeroiticCursive, MeroiticHieroglyphs, Malayalam, Modi, Mongolian, Moon, Mro, MeiteiMayek, Multani, Myanmar, NagMundari, Nandinagari, OldNorthArabian, Nabataean, Newa, NaxiDongba, NaxiGeba, NKo, Nushu, Ogham, OlChiki, OlOnal, OldTurkic, Oriya, Osage, Osmanya, OldUyghur, Palmyrene, PauCinHau, ProtoCuneiform, ProtoElamite, OldPermic, PhagsPa, InscriptionalPahlavi, PsalterPahlavi, BookPahlavi, Phoenician, Klingon, Miao, InscriptionalParthian, ProtoSinaitic, PrivateUseStart, PrivateUseEnd, Ranjana, Rejang, HanifiRohingya, Rongorongo, Runic, Samaritan, Sarati, OldSouthArabian, Saurashtra, Seal, SignWriting, Shavian, Sharada, Shuishu, Siddham, Sidetic, Khudawadi, Sinhala, Sogdian, OldSogdian, SoraSompeng, Soyombo, Sundanese, Sunuwar, SylotiNagri, Syriac, SyriacEstrangelo, SyriacWestern, SyriacEastern, Tagbanwa, Takri, TaiLe, NewTaiLue, Tamil, Tangut, TaiViet, TaiYo, Telugu, Tengwar, Tifinagh, Tagalog, Thaana, Thai, Tibetan, Tirhuta, Tangsa, Todhri, TolongSiki, Toto, TuluTigalari, Ugaritic, Vai, VisibleSpeech, Vithkuqi, WarangCiti, Wancho, Woleai, OldPersian, Cuneiform, Yezidi, Yi, ZanabazarSquare, Inherited, MathematicalNotation, SymbolsEmoji, Symbols, Unwritten, Undetermined, Uncoded, Unknown(&'a str),
}
Expand description

Borrowing, Copy counterpart of Script.

Variants§

§

Adlam

Adlam (ISO 15924 Adlm, numeric 166)

§

Afaka

Afaka (ISO 15924 Afak, numeric 439)

§

CaucasianAlbanian

Caucasian Albanian (ISO 15924 Aghb, numeric 239)

§

Ahom

Ahom, Tai Ahom (ISO 15924 Ahom, numeric 338)

§

Arabic

Arabic (ISO 15924 Arab, numeric 160)

§

ArabicNastaliq

Arabic (Nastaliq variant) (ISO 15924 Aran, numeric 161)

§

ImperialAramaic

Imperial Aramaic (ISO 15924 Armi, numeric 124)

§

Armenian

Armenian (ISO 15924 Armn, numeric 230)

§

Avestan

Avestan (ISO 15924 Avst, numeric 134)

§

Balinese

Balinese (ISO 15924 Bali, numeric 360)

§

Bamum

Bamum (ISO 15924 Bamu, numeric 435)

§

BassaVah

Bassa Vah (ISO 15924 Bass, numeric 259)

§

Batak

Batak (ISO 15924 Batk, numeric 365)

§

Bengali

Bengali (Bangla) (ISO 15924 Beng, numeric 325)

§

BeriaErfe

Beria Erfe (ISO 15924 Berf, numeric 258)

§

Bhaiksuki

Bhaiksuki (ISO 15924 Bhks, numeric 334)

§

Blissymbols

Blissymbols (ISO 15924 Blis, numeric 550)

§

Bopomofo

Bopomofo (ISO 15924 Bopo, numeric 285)

§

Brahmi

Brahmi (ISO 15924 Brah, numeric 300)

§

Braille

Braille (ISO 15924 Brai, numeric 570)

§

Buginese

Buginese (ISO 15924 Bugi, numeric 367)

§

Buhid

Buhid (ISO 15924 Buhd, numeric 372)

§

Chakma

Chakma (ISO 15924 Cakm, numeric 349)

§

UnifiedCanadianAboriginalSyllabics

Unified Canadian Aboriginal Syllabics (ISO 15924 Cans, numeric 440)

§

Carian

Carian (ISO 15924 Cari, numeric 201)

§

Cham

Cham (ISO 15924 Cham, numeric 358)

§

Cherokee

Cherokee (ISO 15924 Cher, numeric 445)

§

Chisoi

Chisoi (ISO 15924 Chis, numeric 298)

§

Chorasmian

Chorasmian (ISO 15924 Chrs, numeric 109)

§

Cirth

Cirth (ISO 15924 Cirt, numeric 291)

§

Coptic

Coptic (ISO 15924 Copt, numeric 204)

§

CyproMinoan

Cypro-Minoan (ISO 15924 Cpmn, numeric 402)

§

CypriotSyllabary

Cypriot syllabary (ISO 15924 Cprt, numeric 403)

§

Cyrillic

Cyrillic (ISO 15924 Cyrl, numeric 220)

§

CyrillicOldChurchSlavonic

Cyrillic (Old Church Slavonic variant) (ISO 15924 Cyrs, numeric 221)

§

Devanagari

Devanagari (Nagari) (ISO 15924 Deva, numeric 315)

§

DivesAkuru

Dives Akuru (ISO 15924 Diak, numeric 342)

§

Dogra

Dogra (ISO 15924 Dogr, numeric 328)

§

Deseret

Deseret (Mormon) (ISO 15924 Dsrt, numeric 250)

§

DuployanShorthand

Duployan shorthand, Duployan stenography (ISO 15924 Dupl, numeric 755)

§

EgyptianDemotic

Egyptian demotic (ISO 15924 Egyd, numeric 070)

§

EgyptianHieratic

Egyptian hieratic (ISO 15924 Egyh, numeric 060)

§

EgyptianHieroglyphs

Egyptian hieroglyphs (ISO 15924 Egyp, numeric 050)

§

Elbasan

Elbasan (ISO 15924 Elba, numeric 226)

§

Elymaic

Elymaic (ISO 15924 Elym, numeric 128)

§

Ethiopic

Ethiopic (Geʻez) (ISO 15924 Ethi, numeric 430)

§

Garay

Garay (ISO 15924 Gara, numeric 164)

§

Khutsuri

Khutsuri (Asomtavruli and Nuskhuri) (ISO 15924 Geok, numeric 241)

§

Georgian

Georgian (Mkhedruli and Mtavruli) (ISO 15924 Geor, numeric 240)

§

Glagolitic

Glagolitic (ISO 15924 Glag, numeric 225)

§

GunjalaGondi

Gunjala Gondi (ISO 15924 Gong, numeric 312)

§

MasaramGondi

Masaram Gondi (ISO 15924 Gonm, numeric 313)

§

Gothic

Gothic (ISO 15924 Goth, numeric 206)

§

Grantha

Grantha (ISO 15924 Gran, numeric 343)

§

Greek

Greek (ISO 15924 Grek, numeric 200)

§

Gujarati

Gujarati (ISO 15924 Gujr, numeric 320)

§

GurungKhema

Gurung Khema (ISO 15924 Gukh, numeric 397)

§

Gurmukhi

Gurmukhi (ISO 15924 Guru, numeric 310)

§

HanWithBopomofo

Han with Bopomofo (alias for Han + Bopomofo) (ISO 15924 Hanb, numeric 503)

§

Hangul

Hangul (Hangŭl, Hangeul) (ISO 15924 Hang, numeric 286)

§

Han

Han (Hanzi, Kanji, Hanja) (ISO 15924 Hani, numeric 500)

§

Hanunoo

Hanunoo (Hanunóo) (ISO 15924 Hano, numeric 371)

§

HanSimplified

Han (Simplified variant) (ISO 15924 Hans, numeric 501)

§

HanTraditional

Han (Traditional variant) (ISO 15924 Hant, numeric 502)

§

Hatran

Hatran (ISO 15924 Hatr, numeric 127)

§

Hebrew

Hebrew (ISO 15924 Hebr, numeric 125)

§

Hiragana

Hiragana (ISO 15924 Hira, numeric 410)

§

AnatolianHieroglyphs

Anatolian Hieroglyphs (Luwian Hieroglyphs, Hittite Hieroglyphs) (ISO 15924 Hluw, numeric 080)

§

PahawhHmong

Pahawh Hmong (ISO 15924 Hmng, numeric 450)

§

NyiakengPuachueHmong

Nyiakeng Puachue Hmong (ISO 15924 Hmnp, numeric 451)

§

HanWithLatin

Han (Traditional variant) with Latin (alias for Hant + Latn) (ISO 15924 Hntl, numeric 504)

§

JapaneseSyllabaries

Japanese syllabaries (alias for Hiragana + Katakana) (ISO 15924 Hrkt, numeric 412)

§

OldHungarian

Old Hungarian (Hungarian Runic) (ISO 15924 Hung, numeric 176)

§

Indus

Indus (Harappan) (ISO 15924 Inds, numeric 610)

§

OldItalic

Old Italic (Etruscan, Oscan, etc.) (ISO 15924 Ital, numeric 210)

§

Jamo

Jamo (alias for Jamo subset of Hangul) (ISO 15924 Jamo, numeric 284)

§

Javanese

Javanese (ISO 15924 Java, numeric 361)

§

Japanese

Japanese (alias for Han + Hiragana + Katakana) (ISO 15924 Jpan, numeric 413)

§

Jurchen

Jurchen (ISO 15924 Jurc, numeric 510)

§

KayahLi

Kayah Li (ISO 15924 Kali, numeric 357)

§

Katakana

Katakana (ISO 15924 Kana, numeric 411)

§

Kawi

Kawi (ISO 15924 Kawi, numeric 368)

§

Kharoshthi

Kharoshthi (ISO 15924 Khar, numeric 305)

§

Khmer

Khmer (ISO 15924 Khmr, numeric 355)

§

Khojki

Khojki (ISO 15924 Khoj, numeric 322)

§

KhitanLargeScript

Khitan large script (ISO 15924 Kitl, numeric 505)

§

KhitanSmallScript

Khitan small script (ISO 15924 Kits, numeric 288)

§

Kannada

Kannada (ISO 15924 Knda, numeric 345)

§

Korean

Korean (alias for Hangul + Han) (ISO 15924 Kore, numeric 287)

§

Kpelle

Kpelle (ISO 15924 Kpel, numeric 436)

§

KiratRai

Kirat Rai (ISO 15924 Krai, numeric 396)

§

Kaithi

Kaithi (ISO 15924 Kthi, numeric 317)

§

TaiTham

Tai Tham (Lanna) (ISO 15924 Lana, numeric 351)

§

Lao

Lao (ISO 15924 Laoo, numeric 356)

§

LatinFraktur

Latin (Fraktur variant) (ISO 15924 Latf, numeric 217)

§

LatinGaelic

Latin (Gaelic variant) (ISO 15924 Latg, numeric 216)

§

Latin

Latin (ISO 15924 Latn, numeric 215)

§

Leke

Leke (ISO 15924 Leke, numeric 364)

§

Lepcha

Lepcha (Róng) (ISO 15924 Lepc, numeric 335)

§

Limbu

Limbu (ISO 15924 Limb, numeric 336)

§

LinearA

Linear A (ISO 15924 Lina, numeric 400)

§

LinearB

Linear B (ISO 15924 Linb, numeric 401)

§

Lisu

Lisu (Fraser) (ISO 15924 Lisu, numeric 399)

§

Loma

Loma (ISO 15924 Loma, numeric 437)

§

Lycian

Lycian (ISO 15924 Lyci, numeric 202)

§

Lydian

Lydian (ISO 15924 Lydi, numeric 116)

§

Mahajani

Mahajani (ISO 15924 Mahj, numeric 314)

§

Makasar

Makasar (ISO 15924 Maka, numeric 366)

§

Mandaic

Mandaic, Mandaean (ISO 15924 Mand, numeric 140)

§

Manichaean

Manichaean (ISO 15924 Mani, numeric 139)

§

Marchen

Marchen (ISO 15924 Marc, numeric 332)

§

MayanHieroglyphs

Mayan hieroglyphs (ISO 15924 Maya, numeric 090)

§

Medefaidrin

Medefaidrin (Oberi Okaime, Oberi Ɔkaimɛ) (ISO 15924 Medf, numeric 265)

§

MendeKikakui

Mende Kikakui (ISO 15924 Mend, numeric 438)

§

MeroiticCursive

Meroitic Cursive (ISO 15924 Merc, numeric 101)

§

MeroiticHieroglyphs

Meroitic Hieroglyphs (ISO 15924 Mero, numeric 100)

§

Malayalam

Malayalam (ISO 15924 Mlym, numeric 347)

§

Modi

Modi, Moḍī (ISO 15924 Modi, numeric 324)

§

Mongolian

Mongolian (ISO 15924 Mong, numeric 145)

§

Moon

Moon (Moon code, Moon script, Moon type) (ISO 15924 Moon, numeric 218)

§

Mro

Mro, Mru (ISO 15924 Mroo, numeric 264)

§

MeiteiMayek

Meitei Mayek (Meithei, Meetei) (ISO 15924 Mtei, numeric 337)

§

Multani

Multani (ISO 15924 Mult, numeric 323)

§

Myanmar

Myanmar (Burmese) (ISO 15924 Mymr, numeric 350)

§

NagMundari

Nag Mundari (ISO 15924 Nagm, numeric 295)

§

Nandinagari

Nandinagari (ISO 15924 Nand, numeric 311)

§

OldNorthArabian

Old North Arabian (Ancient North Arabian) (ISO 15924 Narb, numeric 106)

§

Nabataean

Nabataean (ISO 15924 Nbat, numeric 159)

§

Newa

Newa, Newar, Newari, Nepāla lipi (ISO 15924 Newa, numeric 333)

§

NaxiDongba

Naxi Dongba (na²¹ɕi³³ to³³ba²¹, Nakhi Tomba) (ISO 15924 Nkdb, numeric 085)

§

NaxiGeba

Naxi Geba (na²¹ɕi³³ gʌ²¹ba²¹, ’Na-’Khi ²Ggŏ-¹baw, Nakhi Geba) (ISO 15924 Nkgb, numeric 420)

§

NKo

N’Ko (ISO 15924 Nkoo, numeric 165)

§

Nushu

Nüshu (ISO 15924 Nshu, numeric 499)

§

Ogham

Ogham (ISO 15924 Ogam, numeric 212)

§

OlChiki

Ol Chiki (Ol Cemet’, Ol, Santali) (ISO 15924 Olck, numeric 261)

§

OlOnal

Ol Onal (ISO 15924 Onao, numeric 296)

§

OldTurkic

Old Turkic, Orkhon Runic (ISO 15924 Orkh, numeric 175)

§

Oriya

Oriya (Odia) (ISO 15924 Orya, numeric 327)

§

Osage

Osage (ISO 15924 Osge, numeric 219)

§

Osmanya

Osmanya (ISO 15924 Osma, numeric 260)

§

OldUyghur

Old Uyghur (ISO 15924 Ougr, numeric 143)

§

Palmyrene

Palmyrene (ISO 15924 Palm, numeric 126)

§

PauCinHau

Pau Cin Hau (ISO 15924 Pauc, numeric 263)

§

ProtoCuneiform

Proto-Cuneiform (ISO 15924 Pcun, numeric 015)

§

ProtoElamite

Proto-Elamite (ISO 15924 Pelm, numeric 016)

§

OldPermic

Old Permic (ISO 15924 Perm, numeric 227)

§

PhagsPa

Phags-pa (ISO 15924 Phag, numeric 331)

§

InscriptionalPahlavi

Inscriptional Pahlavi (ISO 15924 Phli, numeric 131)

§

PsalterPahlavi

Psalter Pahlavi (ISO 15924 Phlp, numeric 132)

§

BookPahlavi

Book Pahlavi (ISO 15924 Phlv, numeric 133)

§

Phoenician

Phoenician (ISO 15924 Phnx, numeric 115)

§

Klingon

Klingon (KLI pIqaD) (ISO 15924 Piqd, numeric 293)

§

Miao

Miao (Pollard) (ISO 15924 Plrd, numeric 282)

§

InscriptionalParthian

Inscriptional Parthian (ISO 15924 Prti, numeric 130)

§

ProtoSinaitic

Proto-Sinaitic (ISO 15924 Psin, numeric 103)

§

PrivateUseStart

Reserved for private use (start) (ISO 15924 Qaaa, numeric 900)

§

PrivateUseEnd

Reserved for private use (end) (ISO 15924 Qabx, numeric 949)

§

Ranjana

Ranjana (ISO 15924 Ranj, numeric 303)

§

Rejang

Rejang (Redjang, Kaganga) (ISO 15924 Rjng, numeric 363)

§

HanifiRohingya

Hanifi Rohingya (ISO 15924 Rohg, numeric 167)

§

Rongorongo

Rongorongo (ISO 15924 Roro, numeric 620)

§

Runic

Runic (ISO 15924 Runr, numeric 211)

§

Samaritan

Samaritan (ISO 15924 Samr, numeric 123)

§

Sarati

Sarati (ISO 15924 Sara, numeric 292)

§

OldSouthArabian

Old South Arabian (ISO 15924 Sarb, numeric 105)

§

Saurashtra

Saurashtra (ISO 15924 Saur, numeric 344)

§

Seal

(Small) Seal (ISO 15924 Seal, numeric 590)

§

SignWriting

SignWriting (ISO 15924 Sgnw, numeric 095)

§

Shavian

Shavian (Shaw) (ISO 15924 Shaw, numeric 281)

§

Sharada

Sharada, Śāradā (ISO 15924 Shrd, numeric 319)

§

Shuishu

Shuishu (ISO 15924 Shui, numeric 530)

§

Siddham

Siddham, Siddhaṃ, Siddhamātṛkā (ISO 15924 Sidd, numeric 302)

§

Sidetic

Sidetic (ISO 15924 Sidt, numeric 180)

§

Khudawadi

Khudawadi, Sindhi (ISO 15924 Sind, numeric 318)

§

Sinhala

Sinhala (ISO 15924 Sinh, numeric 348)

§

Sogdian

Sogdian (ISO 15924 Sogd, numeric 141)

§

OldSogdian

Old Sogdian (ISO 15924 Sogo, numeric 142)

§

SoraSompeng

Sora Sompeng (ISO 15924 Sora, numeric 398)

§

Soyombo

Soyombo (ISO 15924 Soyo, numeric 329)

§

Sundanese

Sundanese (ISO 15924 Sund, numeric 362)

§

Sunuwar

Sunuwar (ISO 15924 Sunu, numeric 274)

§

SylotiNagri

Syloti Nagri (ISO 15924 Sylo, numeric 316)

§

Syriac

Syriac (ISO 15924 Syrc, numeric 135)

§

SyriacEstrangelo

Syriac (Estrangelo variant) (ISO 15924 Syre, numeric 138)

§

SyriacWestern

Syriac (Western variant) (ISO 15924 Syrj, numeric 137)

§

SyriacEastern

Syriac (Eastern variant) (ISO 15924 Syrn, numeric 136)

§

Tagbanwa

Tagbanwa (ISO 15924 Tagb, numeric 373)

§

Takri

Takri, Ṭākrī, Ṭāṅkrī (ISO 15924 Takr, numeric 321)

§

TaiLe

Tai Le (ISO 15924 Tale, numeric 353)

§

NewTaiLue

New Tai Lue (ISO 15924 Talu, numeric 354)

§

Tamil

Tamil (ISO 15924 Taml, numeric 346)

§

Tangut

Tangut (ISO 15924 Tang, numeric 520)

§

TaiViet

Tai Viet (ISO 15924 Tavt, numeric 359)

§

TaiYo

Tai Yo (ISO 15924 Tayo, numeric 380)

§

Telugu

Telugu (ISO 15924 Telu, numeric 340)

§

Tengwar

Tengwar (ISO 15924 Teng, numeric 290)

§

Tifinagh

Tifinagh (Berber) (ISO 15924 Tfng, numeric 120)

§

Tagalog

Tagalog (Baybayin, Alibata) (ISO 15924 Tglg, numeric 370)

§

Thaana

Thaana (ISO 15924 Thaa, numeric 170)

§

Thai

Thai (ISO 15924 Thai, numeric 352)

§

Tibetan

Tibetan (ISO 15924 Tibt, numeric 330)

§

Tirhuta

Tirhuta (ISO 15924 Tirh, numeric 326)

§

Tangsa

Tangsa (ISO 15924 Tnsa, numeric 275)

§

Todhri

Todhri (ISO 15924 Todr, numeric 229)

§

TolongSiki

Tolong Siki (ISO 15924 Tols, numeric 299)

§

Toto

Toto (ISO 15924 Toto, numeric 294)

§

TuluTigalari

Tulu-Tigalari (ISO 15924 Tutg, numeric 341)

§

Ugaritic

Ugaritic (ISO 15924 Ugar, numeric 040)

§

Vai

Vai (ISO 15924 Vaii, numeric 470)

§

VisibleSpeech

Visible Speech (ISO 15924 Visp, numeric 280)

§

Vithkuqi

Vithkuqi (ISO 15924 Vith, numeric 228)

§

WarangCiti

Warang Citi (Varang Kshiti) (ISO 15924 Wara, numeric 262)

§

Wancho

Wancho (ISO 15924 Wcho, numeric 283)

§

Woleai

Woleai (ISO 15924 Wole, numeric 480)

§

OldPersian

Old Persian (ISO 15924 Xpeo, numeric 030)

§

Cuneiform

Cuneiform, Sumero-Akkadian (ISO 15924 Xsux, numeric 020)

§

Yezidi

Yezidi (ISO 15924 Yezi, numeric 192)

§

Yi

Yi (ISO 15924 Yiii, numeric 460)

§

ZanabazarSquare

Zanabazar Square (Zanabazarin Dörböljin Useg, Xewtee Dörböljin Bicig, Horizontal Square Script) (ISO 15924 Zanb, numeric 339)

§

Inherited

Code for inherited script (ISO 15924 Zinh, numeric 994)

§

MathematicalNotation

Mathematical notation (ISO 15924 Zmth, numeric 995)

§

SymbolsEmoji

Symbols (Emoji variant) (ISO 15924 Zsye, numeric 993)

§

Symbols

Symbols (ISO 15924 Zsym, numeric 996)

§

Unwritten

Code for unwritten documents (ISO 15924 Zxxx, numeric 997)

§

Undetermined

Code for undetermined script (ISO 15924 Zyyy, numeric 998)

§

Uncoded

Code for uncoded script (ISO 15924 Zzzz, numeric 999)

§

Unknown(&'a str)

A code not recognised by this version of rama, borrowed verbatim.

Implementations§

§

impl<'a> ScriptRef<'a>

pub fn code(self) -> &'a str

The canonical code for this value (e.g. "BE").

pub fn name(self) -> Option<&'static str>

The English display name, or None for an unknown code.

pub fn from_code(code: &'a str) -> ScriptRef<'a>

Parse from a canonical code (case-sensitive), borrowing code for any unknown value.

pub fn is_known(self) -> bool

Whether this is a known (non-Unknown) value.

pub fn to_owned(self) -> Script

Convert into the owned form (allocates only for Unknown).

§

impl ScriptRef<'_>

pub fn numeric(self) -> Option<u16>

The numeric metadata for this value, or None if unknown.

Trait Implementations§

§

impl<'a> Clone for ScriptRef<'a>

§

fn clone(&self) -> ScriptRef<'a>

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
§

impl<'a> Copy for ScriptRef<'a>

§

impl<'a> Debug for ScriptRef<'a>

§

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

Formats the value using the given formatter. Read more
§

impl Display for ScriptRef<'_>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Eq for ScriptRef<'a>

§

impl<'a> Hash for ScriptRef<'a>

§

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
§

impl<'a> PartialEq for ScriptRef<'a>

§

fn eq(&self, other: &ScriptRef<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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.
§

impl Serialize for ScriptRef<'_>

§

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
§

impl<'a> StructuralPartialEq for ScriptRef<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ScriptRef<'a>

§

impl<'a> RefUnwindSafe for ScriptRef<'a>

§

impl<'a> Send for ScriptRef<'a>

§

impl<'a> Sync for ScriptRef<'a>

§

impl<'a> Unpin for ScriptRef<'a>

§

impl<'a> UnsafeUnpin for ScriptRef<'a>

§

impl<'a> UnwindSafe for ScriptRef<'a>

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
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. 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<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
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a rama_grpc::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
§

impl<T, U> RamaFrom<T> for U
where U: From<T>,

§

fn rama_from(value: T) -> U

§

impl<T, U, CrateMarker> RamaInto<U, CrateMarker> for T
where U: RamaFrom<T, CrateMarker>,

§

fn rama_into(self) -> U

§

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

§

type Error = <U as TryFrom<T>>::Error

§

fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>

§

impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for T
where U: RamaTryFrom<T, CrateMarker>,

§

type Error = <U as RamaTryFrom<T, CrateMarker>>::Error

§

fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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
§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> ToStringFallible for T
where T: Display,

§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<V, F> ValueFormatter<&V> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

fn format_value(writer: impl ValueWriter, value: &&V)

Write value to writer
§

impl<V, F> ValueFormatter<Arc<V>> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

fn format_value(writer: impl ValueWriter, value: &Arc<V>)

Write value to writer
§

impl<V, F> ValueFormatter<Box<V>> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

fn format_value(writer: impl ValueWriter, value: &Box<V>)

Write value to writer
§

impl<V, F> ValueFormatter<Cow<'_, V>> for F
where V: ToOwned + ?Sized, F: ValueFormatter<V> + ?Sized,

§

fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)

Write value to writer
§

impl<V, F> ValueFormatter<Option<V>> for F
where F: ValueFormatter<V> + ?Sized,

§

fn format_value(writer: impl ValueWriter, value: &Option<V>)

Write value to writer
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more