Skip to main content

Script

Struct Script 

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

A text script identified by an ISO 15924 tag.

Implementations§

Source§

impl Script

Source

pub const fn from_iso15924_tag(tag: Tag) -> Option<Script>

Converts an ISO 15924 script tag to a corresponding Script.

Source

pub fn tag(&self) -> Tag

Returns script’s tag.

Source§

impl Script

Source

pub const COMMON: Self

Source

pub const INHERITED: Self

Source

pub const ARABIC: Self

Source

pub const ARMENIAN: Self

Source

pub const BENGALI: Self

Source

pub const CYRILLIC: Self

Source

pub const DEVANAGARI: Self

Source

pub const GEORGIAN: Self

Source

pub const GREEK: Self

Source

pub const GUJARATI: Self

Source

pub const GURMUKHI: Self

Source

pub const HANGUL: Self

Source

pub const HAN: Self

Source

pub const HEBREW: Self

Source

pub const HIRAGANA: Self

Source

pub const KANNADA: Self

Source

pub const KATAKANA: Self

Source

pub const LAO: Self

Source

pub const LATIN: Self

Source

pub const MALAYALAM: Self

Source

pub const ORIYA: Self

Source

pub const TAMIL: Self

Source

pub const TELUGU: Self

Source

pub const THAI: Self

Source

pub const TIBETAN: Self

Source

pub const BOPOMOFO: Self

Source

pub const BRAILLE: Self

Source

pub const CANADIAN_SYLLABICS: Self

Source

pub const CHEROKEE: Self

Source

pub const ETHIOPIC: Self

Source

pub const KHMER: Self

Source

pub const MONGOLIAN: Self

Source

pub const MYANMAR: Self

Source

pub const OGHAM: Self

Source

pub const RUNIC: Self

Source

pub const SINHALA: Self

Source

pub const SYRIAC: Self

Source

pub const THAANA: Self

Source

pub const YI: Self

Source

pub const DESERET: Self

Source

pub const GOTHIC: Self

Source

pub const OLD_ITALIC: Self

Source

pub const BUHID: Self

Source

pub const HANUNOO: Self

Source

pub const TAGALOG: Self

Source

pub const TAGBANWA: Self

Source

pub const CYPRIOT: Self

Source

pub const LIMBU: Self

Source

pub const LINEAR_B: Self

Source

pub const OSMANYA: Self

Source

pub const SHAVIAN: Self

Source

pub const TAI_LE: Self

Source

pub const UGARITIC: Self

Source

pub const BUGINESE: Self

Source

pub const COPTIC: Self

Source

pub const GLAGOLITIC: Self

Source

pub const KHAROSHTHI: Self

Source

pub const NEW_TAI_LUE: Self

Source

pub const OLD_PERSIAN: Self

Source

pub const SYLOTI_NAGRI: Self

Source

pub const TIFINAGH: Self

Source

pub const UNKNOWN: Self

Source

pub const BALINESE: Self

Source

pub const CUNEIFORM: Self

Source

pub const NKO: Self

Source

pub const PHAGS_PA: Self

Source

pub const PHOENICIAN: Self

Source

pub const CARIAN: Self

Source

pub const CHAM: Self

Source

pub const KAYAH_LI: Self

Source

pub const LEPCHA: Self

Source

pub const LYCIAN: Self

Source

pub const LYDIAN: Self

Source

pub const OL_CHIKI: Self

Source

pub const REJANG: Self

Source

pub const SAURASHTRA: Self

Source

pub const SUNDANESE: Self

Source

pub const VAI: Self

Source

pub const AVESTAN: Self

Source

pub const BAMUM: Self

Source

pub const EGYPTIAN_HIEROGLYPHS: Self

Source

pub const IMPERIAL_ARAMAIC: Self

Source

pub const INSCRIPTIONAL_PAHLAVI: Self

Source

pub const INSCRIPTIONAL_PARTHIAN: Self

Source

pub const JAVANESE: Self

Source

pub const KAITHI: Self

Source

pub const LISU: Self

Source

pub const MEETEI_MAYEK: Self

Source

pub const OLD_SOUTH_ARABIAN: Self

Source

pub const OLD_TURKIC: Self

Source

pub const SAMARITAN: Self

Source

pub const TAI_THAM: Self

Source

pub const TAI_VIET: Self

Source

pub const BATAK: Self

Source

pub const BRAHMI: Self

Source

pub const MANDAIC: Self

Source

pub const CHAKMA: Self

Source

pub const MEROITIC_CURSIVE: Self

Source

pub const MEROITIC_HIEROGLYPHS: Self

Source

pub const MIAO: Self

Source

pub const SHARADA: Self

Source

pub const SORA_SOMPENG: Self

Source

pub const TAKRI: Self

Source

pub const BASSA_VAH: Self

Source

pub const CAUCASIAN_ALBANIAN: Self

Source

pub const DUPLOYAN: Self

Source

pub const ELBASAN: Self

Source

pub const GRANTHA: Self

Source

pub const KHOJKI: Self

Source

pub const KHUDAWADI: Self

Source

pub const LINEAR_A: Self

Source

pub const MAHAJANI: Self

Source

pub const MANICHAEAN: Self

Source

pub const MENDE_KIKAKUI: Self

Source

pub const MODI: Self

Source

pub const MRO: Self

Source

pub const NABATAEAN: Self

Source

pub const OLD_NORTH_ARABIAN: Self

Source

pub const OLD_PERMIC: Self

Source

pub const PAHAWH_HMONG: Self

Source

pub const PALMYRENE: Self

Source

pub const PAU_CIN_HAU: Self

Source

pub const PSALTER_PAHLAVI: Self

Source

pub const SIDDHAM: Self

Source

pub const TIRHUTA: Self

Source

pub const WARANG_CITI: Self

Source

pub const AHOM: Self

Source

pub const ANATOLIAN_HIEROGLYPHS: Self

Source

pub const HATRAN: Self

Source

pub const MULTANI: Self

Source

pub const OLD_HUNGARIAN: Self

Source

pub const SIGNWRITING: Self

Source

pub const ADLAM: Self

Source

pub const BHAIKSUKI: Self

Source

pub const MARCHEN: Self

Source

pub const OSAGE: Self

Source

pub const TANGUT: Self

Source

pub const NEWA: Self

Source

pub const MASARAM_GONDI: Self

Source

pub const NUSHU: Self

Source

pub const SOYOMBO: Self

Source

pub const ZANABAZAR_SQUARE: Self

Source

pub const DOGRA: Self

Source

pub const GUNJALA_GONDI: Self

Source

pub const HANIFI_ROHINGYA: Self

Source

pub const MAKASAR: Self

Source

pub const MEDEFAIDRIN: Self

Source

pub const OLD_SOGDIAN: Self

Source

pub const SOGDIAN: Self

Source

pub const ELYMAIC: Self

Source

pub const NANDINAGARI: Self

Source

pub const NYIAKENG_PUACHUE_HMONG: Self

Source

pub const WANCHO: Self

Source

pub const CHORASMIAN: Self

Source

pub const DIVES_AKURU: Self

Source

pub const KHITAN_SMALL_SCRIPT: Self

Source

pub const YEZIDI: Self

Source

pub const CYPRO_MINOAN: Self

Source

pub const OLD_UYGHUR: Self

Source

pub const TANGSA: Self

Source

pub const TOTO: Self

Source

pub const VITHKUQI: Self

Source

pub const KAWI: Self

Source

pub const NAG_MUNDARI: Self

Source

pub const GARAY: Self

Source

pub const GURUNG_KHEMA: Self

Source

pub const KIRAT_RAI: Self

Source

pub const OL_ONAL: Self

Source

pub const SUNUWAR: Self

Source

pub const TODHRI: Self

Source

pub const TULU_TIGALARI: Self

Source

pub const BERIA_ERFE: Self

Source

pub const SIDETIC: Self

Source

pub const TAI_YO: Self

Source

pub const TOLONG_SIKI: Self

Source

pub const JURCHEN: Self

Source

pub const PROTO_CUNEIFORM: Self

Source

pub const SEAL: Self

Source

pub const MATH: Self

Source

pub const MYANMAR_ZAWGYI: Self

Trait Implementations§

Source§

impl Clone for Script

Source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Script

Source§

impl Debug for Script

Source§

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

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

impl Eq for Script

Source§

impl FromStr for Script

Source§

type Err = &'static str

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Script

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Script

Source§

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

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

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

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

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

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

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

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

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

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

impl PartialEq for Script

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl PartialOrd for Script

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

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

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

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

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

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

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

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

impl StructuralPartialEq for Script

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> 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> ErasedDestructor for T
where T: 'static,

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 = !

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

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

Performs the conversion.
Source§

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

Source§

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

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.