Skip to main content

Script

Struct Script 

Source
pub struct Script(/* private fields */);
Expand description

Enumerated property Script.

This is used with both the Script and Script_Extensions Unicode properties. Each character is assigned a single Script, but characters that are used in a particular subset of scripts will be in more than one Script_Extensions set. For example, DEVANAGARI DIGIT NINE has Script=Devanagari, but is also in the Script_Extensions set for Dogra, Kaithi, and Mahajani. If you are trying to determine whether a code point belongs to a certain script, you should use ScriptWithExtensionsBorrowed::has_script.

For more information, see UAX #24: https://www.unicode.org/reports/tr24/.

Additional constants are provided for ISO 15924 script codes, even if these are not encoded in Unicode. For example, Han is a Unicode script (corresponding to the ISO 15924 code Hani), but ISO 15924 also defines Hans and Hant for simplified and traditional Han.

Such constants are documented as non-Unicode constants, and are not returned as the Script property for any code point.

§Example

use icu::properties::{CodePointMapData, props::Script};

assert_eq!(CodePointMapData::<Script>::new().get('木'), Script::Han);  // U+6728
assert_eq!(CodePointMapData::<Script>::new().get('🎃'), Script::Common);  // U+1F383 JACK-O-LANTERN

Implementations§

Source§

impl Script

Source

pub const Common: Self

Source

pub const Zyyy: Self = Self::Common

Source

pub const Inherited: Self

Source

pub const Zinh: Self = Self::Inherited

Source

pub const Qaai: Self = Self::Inherited

Source

pub const Arabic: Self

Source

pub const Arab: Self = Self::Arabic

Source

pub const Armenian: Self

Source

pub const Armn: Self = Self::Armenian

Source

pub const Bengali: Self

Source

pub const Beng: Self = Self::Bengali

Source

pub const Bopomofo: Self

Source

pub const Bopo: Self = Self::Bopomofo

Source

pub const Cherokee: Self

Source

pub const Cher: Self = Self::Cherokee

Source

pub const Coptic: Self

Source

pub const Copt: Self = Self::Coptic

Source

pub const Qaac: Self = Self::Coptic

Source

pub const Cyrillic: Self

Source

pub const Cyrl: Self = Self::Cyrillic

Source

pub const Deseret: Self

Source

pub const Dsrt: Self = Self::Deseret

Source

pub const Devanagari: Self

Source

pub const Deva: Self = Self::Devanagari

Source

pub const Ethiopic: Self

Source

pub const Ethi: Self = Self::Ethiopic

Source

pub const Georgian: Self

Source

pub const Geor: Self = Self::Georgian

Source

pub const Gothic: Self

Source

pub const Goth: Self = Self::Gothic

Source

pub const Greek: Self

Source

pub const Grek: Self = Self::Greek

Source

pub const Gujarati: Self

Source

pub const Gujr: Self = Self::Gujarati

Source

pub const Gurmukhi: Self

Source

pub const Guru: Self = Self::Gurmukhi

Source

pub const Han: Self

Source

pub const Hani: Self = Self::Han

Source

pub const Hangul: Self

Source

pub const Hang: Self = Self::Hangul

Source

pub const Hebrew: Self

Source

pub const Hebr: Self = Self::Hebrew

Source

pub const Hiragana: Self

Source

pub const Hira: Self = Self::Hiragana

Source

pub const Kannada: Self

Source

pub const Knda: Self = Self::Kannada

Source

pub const Katakana: Self

Source

pub const Kana: Self = Self::Katakana

Source

pub const Khmer: Self

Source

pub const Khmr: Self = Self::Khmer

Source

pub const Lao: Self

Source

pub const Laoo: Self = Self::Lao

Source

pub const Latin: Self

Source

pub const Latn: Self = Self::Latin

Source

pub const Malayalam: Self

Source

pub const Mlym: Self = Self::Malayalam

Source

pub const Mongolian: Self

Source

pub const Mong: Self = Self::Mongolian

Source

pub const Myanmar: Self

Source

pub const Mymr: Self = Self::Myanmar

Source

pub const Ogham: Self

Source

pub const Ogam: Self = Self::Ogham

Source

pub const OldItalic: Self

Source

pub const Ital: Self = Self::OldItalic

Source

pub const Oriya: Self

Source

pub const Orya: Self = Self::Oriya

Source

pub const Runic: Self

Source

pub const Runr: Self = Self::Runic

Source

pub const Sinhala: Self

Source

pub const Sinh: Self = Self::Sinhala

Source

pub const Syriac: Self

Source

pub const Syrc: Self = Self::Syriac

Source

pub const Tamil: Self

Source

pub const Taml: Self = Self::Tamil

Source

pub const Telugu: Self

Source

pub const Telu: Self = Self::Telugu

Source

pub const Thaana: Self

Source

pub const Thaa: Self = Self::Thaana

Source

pub const Thai: Self

Source

pub const Tibetan: Self

Source

pub const Tibt: Self = Self::Tibetan

Source

pub const CanadianAboriginal: Self

Source

pub const Cans: Self = Self::CanadianAboriginal

Source

pub const Yi: Self

Source

pub const Yiii: Self = Self::Yi

Source

pub const Tagalog: Self

Source

pub const Tglg: Self = Self::Tagalog

Source

pub const Hanunoo: Self

Source

pub const Hano: Self = Self::Hanunoo

Source

pub const Buhid: Self

Source

pub const Buhd: Self = Self::Buhid

Source

pub const Tagbanwa: Self

Source

pub const Tagb: Self = Self::Tagbanwa

Source

pub const Braille: Self

Source

pub const Brai: Self = Self::Braille

Source

pub const Cypriot: Self

Source

pub const Cprt: Self = Self::Cypriot

Source

pub const Limbu: Self

Source

pub const Limb: Self = Self::Limbu

Source

pub const LinearB: Self

Source

pub const Linb: Self = Self::LinearB

Source

pub const Osmanya: Self

Source

pub const Osma: Self = Self::Osmanya

Source

pub const Shavian: Self

Source

pub const Shaw: Self = Self::Shavian

Source

pub const TaiLe: Self

Source

pub const Tale: Self = Self::TaiLe

Source

pub const Ugaritic: Self

Source

pub const Ugar: Self = Self::Ugaritic

Source

pub const KatakanaOrHiragana: Self

Source

pub const Hrkt: Self = Self::KatakanaOrHiragana

Source

pub const Buginese: Self

Source

pub const Bugi: Self = Self::Buginese

Source

pub const Glagolitic: Self

Source

pub const Glag: Self = Self::Glagolitic

Source

pub const Kharoshthi: Self

Source

pub const Khar: Self = Self::Kharoshthi

Source

pub const SylotiNagri: Self

Source

pub const Sylo: Self = Self::SylotiNagri

Source

pub const NewTaiLue: Self

Source

pub const Talu: Self = Self::NewTaiLue

Source

pub const Tifinagh: Self

Source

pub const Tfng: Self = Self::Tifinagh

Source

pub const OldPersian: Self

Source

pub const Xpeo: Self = Self::OldPersian

Source

pub const Balinese: Self

Source

pub const Bali: Self = Self::Balinese

Source

pub const Batak: Self

Source

pub const Batk: Self = Self::Batak

Source

pub const BlisSymbols: Self

ISO 15924

Source

pub const Blis: Self = Self::BlisSymbols

ISO 15924

Source

pub const Brahmi: Self

Source

pub const Brah: Self = Self::Brahmi

Source

pub const Cham: Self

Source

pub const Cirth: Self

ISO 15924

Source

pub const Cirt: Self = Self::Cirth

ISO 15924

Source

pub const OldChurchSlavonicCyrillic: Self

ISO 15924

Source

pub const Cyrs: Self = Self::OldChurchSlavonicCyrillic

ISO 15924

Source

pub const DemoticEgyptian: Self

ISO 15924

Source

pub const Egyd: Self = Self::DemoticEgyptian

ISO 15924

Source

pub const HieraticEgyptian: Self

ISO 15924

Source

pub const Egyh: Self = Self::HieraticEgyptian

ISO 15924

Source

pub const EgyptianHieroglyphs: Self

Source

pub const Egyp: Self = Self::EgyptianHieroglyphs

Source

pub const Khutsuri: Self

ISO 15924

Source

pub const Geok: Self = Self::Khutsuri

ISO 15924

Source

pub const SimplifiedHan: Self

ISO 15924

Source

pub const Hans: Self = Self::SimplifiedHan

ISO 15924

Source

pub const TraditionalHan: Self

ISO 15924

Source

pub const Hant: Self = Self::TraditionalHan

ISO 15924

Source

pub const PahawhHmong: Self

Source

pub const Hmng: Self = Self::PahawhHmong

Source

pub const OldHungarian: Self

Source

pub const Hung: Self = Self::OldHungarian

Source

pub const HarappanIndus: Self

ISO 15924

Source

pub const Inds: Self = Self::HarappanIndus

ISO 15924

Source

pub const Javanese: Self

Source

pub const Java: Self = Self::Javanese

Source

pub const KayahLi: Self

Source

pub const Kali: Self = Self::KayahLi

Source

pub const LatinFraktur: Self

ISO 15924

Source

pub const Latf: Self = Self::LatinFraktur

ISO 15924

Source

pub const LatinGaelic: Self

ISO 15924

Source

pub const Latg: Self = Self::LatinGaelic

ISO 15924

Source

pub const Lepcha: Self

Source

pub const Lepc: Self = Self::Lepcha

Source

pub const LinearA: Self

Source

pub const Lina: Self = Self::LinearA

Source

pub const Mandaic: Self

Source

pub const Mand: Self = Self::Mandaic

Source

pub const MayanHieroglyphs: Self

ISO 15924

Source

pub const Maya: Self = Self::MayanHieroglyphs

ISO 15924

Source

pub const MeroiticHieroglyphs: Self

Source

pub const Mero: Self = Self::MeroiticHieroglyphs

Source

pub const Nko: Self

Source

pub const Nkoo: Self = Self::Nko

Source

pub const OldTurkic: Self

Source

pub const Orkh: Self = Self::OldTurkic

Source

pub const OldPermic: Self

Source

pub const Perm: Self = Self::OldPermic

Source

pub const PhagsPa: Self

Source

pub const Phag: Self = Self::PhagsPa

Source

pub const Phoenician: Self

Source

pub const Phnx: Self = Self::Phoenician

Source

pub const Miao: Self

Source

pub const Plrd: Self = Self::Miao

Source

pub const Rongorongo: Self

ISO 15924

Source

pub const Roro: Self = Self::Rongorongo

ISO 15924

Source

pub const Sarati: Self

ISO 15924

Source

pub const Sara: Self = Self::Sarati

ISO 15924

Source

pub const EstrangeloSyriac: Self

ISO 15924

Source

pub const Syre: Self = Self::EstrangeloSyriac

ISO 15924

Source

pub const WesternSyriac: Self

ISO 15924

Source

pub const Syrj: Self = Self::WesternSyriac

ISO 15924

Source

pub const EasternSyriac: Self

ISO 15924

Source

pub const Syrn: Self = Self::EasternSyriac

ISO 15924

Source

pub const Tengwar: Self

ISO 15924

Source

pub const Teng: Self = Self::Tengwar

ISO 15924

Source

pub const Vai: Self

Source

pub const Vaii: Self = Self::Vai

Source

pub const VisibleSpeech: Self

ISO 15924

Source

pub const Visp: Self = Self::VisibleSpeech

ISO 15924

Source

pub const Cuneiform: Self

Source

pub const Xsux: Self = Self::Cuneiform

Source

pub const UnwrittenLanguages: Self

ISO 15924

Source

pub const Zxxx: Self = Self::UnwrittenLanguages

ISO 15924

Source

pub const Unknown: Self

Source

pub const Zzzz: Self = Self::Unknown

Source

pub const Carian: Self

Source

pub const Cari: Self = Self::Carian

Source

pub const Japanese: Self

ISO 15924

Source

pub const Jpan: Self = Self::Japanese

ISO 15924

Source

pub const TaiTham: Self

Source

pub const Lana: Self = Self::TaiTham

Source

pub const Lycian: Self

Source

pub const Lyci: Self = Self::Lycian

Source

pub const Lydian: Self

Source

pub const Lydi: Self = Self::Lydian

Source

pub const OlChiki: Self

Source

pub const Olck: Self = Self::OlChiki

Source

pub const Rejang: Self

Source

pub const Rjng: Self = Self::Rejang

Source

pub const Saurashtra: Self

Source

pub const Saur: Self = Self::Saurashtra

Source

pub const SignWriting: Self

Source

pub const Sgnw: Self = Self::SignWriting

Source

pub const Sundanese: Self

Source

pub const Sund: Self = Self::Sundanese

Source

pub const Moon: Self

ISO 15924

Source

pub const MeeteiMayek: Self

Source

pub const Mtei: Self = Self::MeeteiMayek

Source

pub const ImperialAramaic: Self

Source

pub const Armi: Self = Self::ImperialAramaic

Source

pub const Avestan: Self

Source

pub const Avst: Self = Self::Avestan

Source

pub const Chakma: Self

Source

pub const Cakm: Self = Self::Chakma

Source

pub const Korean: Self

ISO 15924

Source

pub const Kore: Self = Self::Korean

ISO 15924

Source

pub const Kaithi: Self

Source

pub const Kthi: Self = Self::Kaithi

Source

pub const Manichaean: Self

Source

pub const Mani: Self = Self::Manichaean

Source

pub const InscriptionalPahlavi: Self

Source

pub const Phli: Self = Self::InscriptionalPahlavi

Source

pub const PsalterPahlavi: Self

Source

pub const Phlp: Self = Self::PsalterPahlavi

Source

pub const BookPahlavi: Self

ISO 15924

Source

pub const Phlv: Self = Self::BookPahlavi

ISO 15924

Source

pub const InscriptionalParthian: Self

Source

pub const Prti: Self = Self::InscriptionalParthian

Source

pub const Samaritan: Self

Source

pub const Samr: Self = Self::Samaritan

Source

pub const TaiViet: Self

Source

pub const Tavt: Self = Self::TaiViet

Source

pub const MathematicalNotation: Self

ISO 15924

Source

pub const Zmth: Self = Self::MathematicalNotation

ISO 15924

Source

pub const Symbols: Self

ISO 15924

Source

pub const Zsym: Self = Self::Symbols

ISO 15924

Source

pub const Bamum: Self

Source

pub const Bamu: Self = Self::Bamum

Source

pub const Lisu: Self

Source

pub const NakhiGeba: Self

ISO 15924

Source

pub const Nkgb: Self = Self::NakhiGeba

ISO 15924

Source

pub const OldSouthArabian: Self

Source

pub const Sarb: Self = Self::OldSouthArabian

Source

pub const BassaVah: Self

Source

pub const Bass: Self = Self::BassaVah

Source

pub const Duployan: Self

Source

pub const Dupl: Self = Self::Duployan

Source

pub const Elbasan: Self

Source

pub const Elba: Self = Self::Elbasan

Source

pub const Grantha: Self

Source

pub const Gran: Self = Self::Grantha

Source

pub const Kpelle: Self

ISO 15924

Source

pub const Kpel: Self = Self::Kpelle

ISO 15924

Source

pub const Loma: Self

ISO 15924

Source

pub const MendeKikakui: Self

Source

pub const Mend: Self = Self::MendeKikakui

Source

pub const MeroiticCursive: Self

Source

pub const Merc: Self = Self::MeroiticCursive

Source

pub const OldNorthArabian: Self

Source

pub const Narb: Self = Self::OldNorthArabian

Source

pub const Nabataean: Self

Source

pub const Nbat: Self = Self::Nabataean

Source

pub const Palmyrene: Self

Source

pub const Palm: Self = Self::Palmyrene

Source

pub const Khudawadi: Self

Source

pub const Sind: Self = Self::Khudawadi

Source

pub const WarangCiti: Self

Source

pub const Wara: Self = Self::WarangCiti

Source

pub const Afaka: Self

ISO 15924

Source

pub const Afak: Self = Self::Afaka

ISO 15924

Source

pub const Jurchen: Self

ISO 15924

Source

pub const Jurc: Self = Self::Jurchen

ISO 15924

Source

pub const Mro: Self

Source

pub const Mroo: Self = Self::Mro

Source

pub const Nushu: Self

Source

pub const Nshu: Self = Self::Nushu

Source

pub const Sharada: Self

Source

pub const Shrd: Self = Self::Sharada

Source

pub const SoraSompeng: Self

Source

pub const Sora: Self = Self::SoraSompeng

Source

pub const Takri: Self

Source

pub const Takr: Self = Self::Takri

Source

pub const Tangut: Self

Source

pub const Tang: Self = Self::Tangut

Source

pub const Woleai: Self

ISO 15924

Source

pub const Wole: Self = Self::Woleai

ISO 15924

Source

pub const AnatolianHieroglyphs: Self

Source

pub const Hluw: Self = Self::AnatolianHieroglyphs

Source

pub const Khojki: Self

Source

pub const Khoj: Self = Self::Khojki

Source

pub const Tirhuta: Self

Source

pub const Tirh: Self = Self::Tirhuta

Source

pub const CaucasianAlbanian: Self

Source

pub const Aghb: Self = Self::CaucasianAlbanian

Source

pub const Mahajani: Self

Source

pub const Mahj: Self = Self::Mahajani

Source

pub const Ahom: Self

Source

pub const Hatran: Self

Source

pub const Hatr: Self = Self::Hatran

Source

pub const Modi: Self

Source

pub const Multani: Self

Source

pub const Mult: Self = Self::Multani

Source

pub const PauCinHau: Self

Source

pub const Pauc: Self = Self::PauCinHau

Source

pub const Siddham: Self

Source

pub const Sidd: Self = Self::Siddham

Source

pub const Adlam: Self

Source

pub const Adlm: Self = Self::Adlam

Source

pub const Bhaiksuki: Self

Source

pub const Bhks: Self = Self::Bhaiksuki

Source

pub const Marchen: Self

Source

pub const Marc: Self = Self::Marchen

Source

pub const Newa: Self

Source

pub const Osage: Self

Source

pub const Osge: Self = Self::Osage

Source

pub const HanWithBopomofo: Self

ISO 15924

Source

pub const Hanb: Self = Self::HanWithBopomofo

ISO 15924

Source

pub const Jamo: Self

ISO 15924

Source

pub const SymbolsEmoji: Self

ISO 15924

Source

pub const Zsye: Self = Self::SymbolsEmoji

ISO 15924

Source

pub const MasaramGondi: Self

Source

pub const Gonm: Self = Self::MasaramGondi

Source

pub const Soyombo: Self

Source

pub const Soyo: Self = Self::Soyombo

Source

pub const ZanabazarSquare: Self

Source

pub const Zanb: Self = Self::ZanabazarSquare

Source

pub const Dogra: Self

Source

pub const Dogr: Self = Self::Dogra

Source

pub const GunjalaGondi: Self

Source

pub const Gong: Self = Self::GunjalaGondi

Source

pub const Makasar: Self

Source

pub const Maka: Self = Self::Makasar

Source

pub const Medefaidrin: Self

Source

pub const Medf: Self = Self::Medefaidrin

Source

pub const HanifiRohingya: Self

Source

pub const Rohg: Self = Self::HanifiRohingya

Source

pub const Sogdian: Self

Source

pub const Sogd: Self = Self::Sogdian

Source

pub const OldSogdian: Self

Source

pub const Sogo: Self = Self::OldSogdian

Source

pub const Elymaic: Self

Source

pub const Elym: Self = Self::Elymaic

Source

pub const NyiakengPuachueHmong: Self

Source

pub const Hmnp: Self = Self::NyiakengPuachueHmong

Source

pub const Nandinagari: Self

Source

pub const Nand: Self = Self::Nandinagari

Source

pub const Wancho: Self

Source

pub const Wcho: Self = Self::Wancho

Source

pub const Chorasmian: Self

Source

pub const Chrs: Self = Self::Chorasmian

Source

pub const DivesAkuru: Self

Source

pub const Diak: Self = Self::DivesAkuru

Source

pub const KhitanSmallScript: Self

Source

pub const Kits: Self = Self::KhitanSmallScript

Source

pub const Yezidi: Self

Source

pub const Yezi: Self = Self::Yezidi

Source

pub const CyproMinoan: Self

Source

pub const Cpmn: Self = Self::CyproMinoan

Source

pub const OldUyghur: Self

Source

pub const Ougr: Self = Self::OldUyghur

Source

pub const Tangsa: Self

Source

pub const Tnsa: Self = Self::Tangsa

Source

pub const Toto: Self

Source

pub const Vithkuqi: Self

Source

pub const Vith: Self = Self::Vithkuqi

Source

pub const Kawi: Self

Source

pub const NagMundari: Self

Source

pub const Nagm: Self = Self::NagMundari

Source

pub const ArabicNastaliq: Self

ISO 15924

Source

pub const Aran: Self = Self::ArabicNastaliq

ISO 15924

Source

pub const Garay: Self

Source

pub const Gara: Self = Self::Garay

Source

pub const GurungKhema: Self

Source

pub const Gukh: Self = Self::GurungKhema

Source

pub const KiratRai: Self

Source

pub const Krai: Self = Self::KiratRai

Source

pub const OlOnal: Self

Source

pub const Onao: Self = Self::OlOnal

Source

pub const Sunuwar: Self

Source

pub const Sunu: Self = Self::Sunuwar

Source

pub const Todhri: Self

Source

pub const Todr: Self = Self::Todhri

Source

pub const TuluTigalari: Self

Source

pub const Tutg: Self = Self::TuluTigalari

Source

pub const BeriaErfe: Self

Source

pub const Berf: Self = Self::BeriaErfe

Source

pub const Sidetic: Self

Source

pub const Sidt: Self = Self::Sidetic

Source

pub const TaiYo: Self

Source

pub const Tayo: Self = Self::TaiYo

Source

pub const TolongSiki: Self

Source

pub const Tols: Self = Self::TolongSiki

Source

pub const TraditionalHanWithLatin: Self

ISO 15924

Source

pub const Hntl: Self = Self::TraditionalHanWithLatin

ISO 15924

Source§

impl Script

Source

pub const ALL_VALUES: &'static [Self]

👎Deprecated

Deprecated

Source§

impl Script

Source

pub const Ethiopian: Self = Self::Ethiopic

👎Deprecated since 2.3.0:

use Script::Ethiopic instead

Deprecated: non-canonical spelling

Source

pub const Nastaliq: Self = Self::ArabicNastaliq

👎Deprecated since 2.3.0:

use Script::ArabicNastaliq instead

Deprecated: non-canonical spelling

Source

pub const fn to_icu4c_value(self) -> u16

👎Deprecated since 2.3.0:

please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this

Returns an ICU4C UScriptCode value.

Source

pub const fn from_icu4c_value(value: u16) -> Self

👎Deprecated since 2.3.0:

please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this

Constructor from an ICU4C UScriptCode value.

Trait Implementations§

Source§

impl AsULE for Script

Source§

type ULE = <u16 as AsULE>::ULE

The ULE type corresponding to Self. Read more
Source§

fn to_unaligned(self) -> Self::ULE

Converts from Self to Self::ULE. Read more
Source§

fn from_unaligned(unaligned: Self::ULE) -> Self

Converts from Self::ULE to Self. Read more
Source§

impl Clone for Script

Source§

fn clone(&self) -> Script

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

Source§

const NAME: &'static [u8]

The name of this property
Source§

const SHORT_NAME: &'static [u8]

The abbreviated name of this property, if it exists, otherwise the name
Source§

fn for_char(ch: char) -> Self

Convenience method for CodePointMapData::new().get(ch) Read more
Source§

impl Eq for Script

Source§

impl From<Script> for u16

Source§

fn from(other: Script) -> Self

Converts to this type from the input type.
Source§

impl From<Script> for Script

Available on crate feature compiled_data only.

Enabled with the compiled_data Cargo feature.

Source§

fn from(value: Script) -> Self

Converts to this type from the input type.
Source§

impl From<Script> for Script

Available on crate feature compiled_data only.

Enabled with the compiled_data Cargo feature.

Source§

fn from(value: Script) -> Self

Converts to this type from the input type.
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 NamedEnumeratedProperty for Script

Source§

fn try_from_str(s: &str) -> Option<Self>

Convenience method for PropertyParser::new().get_loose(s) Read more
Source§

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

Convenience method for PropertyNamesLong::new().get(*self).unwrap() Read more
Source§

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

Convenience method for PropertyNamesShort::new().get(*self).unwrap() Read more
Source§

impl Ord for Script

Source§

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

impl ParseableEnumeratedProperty for Script

Source§

impl PartialEq for Script

Source§

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

Source§

impl TrieValue for Script

Source§

type TryFromU32Error = TryFromIntError

Last-resort fallback value to return if we cannot read data from the trie. Read more
Source§

fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>

A parsing function that is primarily motivated by deserialization contexts. When the serialization type width is smaller than 32 bits, then it is expected that the call site will widen the value to a u32 first.
Source§

fn to_u32(self) -> u32

A method for converting back to a u32 that can roundtrip through Self::try_from_u32(). The default implementation of this trait method panics in debug mode and returns 0 in release mode. Read more

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