Enum font::feature::Script

source ·
pub enum Script {
Show 150 variants Adlam, Ahom, AnatolianHieroglyphs, Arabic, Armenian, Avestan, Balinese, Bamum, BassaVah, Batak, Bengali, BengaliV2, Bhaiksuki, Bopomofo, Brahmi, Braille, Buginese, Buhid, ByzantineMusic, CanadianSyllabics, Carian, CaucasianAlbanian, Chakma, Cham, Cherokee, CJKIdeographic, Coptic, CypriotSyllabary, Cyrillic, Default, Deseret, Devanagari, DevanagariV2, Duployan, EgyptianHieroglyphs, Elbasan, Ethiopic, Georgian, Glagolitic, Gothic, Grantha, Greek, Gujarati, GujaratiV2, Gurmukhi, GurmukhiV2, Hangul, HangulJamo, Hanunoo, Hatran, Hebrew, Hiragana, ImperialAramaic, InscriptionalPahlavi, InscriptionalParthian, Javanese, Kaithi, Kannada, KannadaV2, Katakana, KayahLi, Kharosthi, Khmer, Khojki, Khudawadi, Lao, Latin, Lepcha, Limbu, LinearA, LinearB, Lisu, Lycian, Lydian, Mahajani, Malayalam, MalayalamV2, Mandaic, Manichaean, Marchen, MathematicalAlphanumericSymbols, MeiteiMayek, MendeKikakui, MeroiticCursive, MeroiticHieroglyphs, Miao, Modi, Mongolian, Mro, Multani, MusicalSymbols, Myanmar, MyanmarV2, Nabataean, Newa, NewTaiLue, NKo, Odia, OdiaV2, Ogham, OlChiki, OldItalic, OldHungarian, OldNorthArabian, OldPermic, OldPersianCuneiform, OldSouthArabian, OldTurkic, Osage, Osmanya, PahawhHmong, Palmyrene, PauCinHau, Phagspa, Phoenician, PsalterPahlavi, Rejang, Runic, Samaritan, Saurashtra, Sharada, Shavian, Siddham, SignWriting, Sinhala, SoraSompeng, SumeroAkkadianCuneiform, Sundanese, SylotiNagri, Syriac, Tagalog, Tagbanwa, TaiLe, TaiTham, TaiViet, Takri, Tamil, TamilV2, Tangut, Telugu, TeluguV2, Thaana, Thai, Tibetan, Tifinagh, Tirhuta, UgariticCuneiform, Vai, WarangCiti, Yi,
}
Expand description

A script.

Variants§

§

Adlam

Adlam

§

Ahom

Ahom

§

AnatolianHieroglyphs

Anatolian Hieroglyphs

§

Arabic

Arabic

§

Armenian

Armenian

§

Avestan

Avestan

§

Balinese

Balinese

§

Bamum

Bamum

§

BassaVah

Bassa Vah

§

Batak

Batak

§

Bengali

Bengali

§

BengaliV2

Bengali

§

Bhaiksuki

Bhaiksuki

§

Bopomofo

Bopomofo

§

Brahmi

Brahmi

§

Braille

Braille

§

Buginese

Buginese

§

Buhid

Buhid

§

ByzantineMusic

Byzantine Music

§

CanadianSyllabics

Canadian Syllabics

§

Carian

Carian

§

CaucasianAlbanian

Caucasian Albanian

§

Chakma

Chakma

§

Cham

Cham

§

Cherokee

Cherokee

§

CJKIdeographic

CJK Ideographic

§

Coptic

Coptic

§

CypriotSyllabary

Cypriot Syllabary

§

Cyrillic

Cyrillic

§

Default

Default

§

Deseret

Deseret

§

Devanagari

Devanagari

§

DevanagariV2

Devanagari

§

Duployan

Duployan

§

EgyptianHieroglyphs

Egyptian Hieroglyphs

§

Elbasan

Elbasan

§

Ethiopic

Ethiopic

§

Georgian

Georgian

§

Glagolitic

Glagolitic

§

Gothic

Gothic

§

Grantha

Grantha

§

Greek

Greek

§

Gujarati

Gujarati

§

GujaratiV2

Gujarati

§

Gurmukhi

Gurmukhi

§

GurmukhiV2

Gurmukhi

§

Hangul

Hangul

§

HangulJamo

Hangul Jamo

§

Hanunoo

Hanunoo

§

Hatran

Hatran

§

Hebrew

Hebrew

§

Hiragana

Hiragana

§

ImperialAramaic

Imperial Aramaic

§

InscriptionalPahlavi

Inscriptional Pahlavi

§

InscriptionalParthian

Inscriptional Parthian

§

Javanese

Javanese

§

Kaithi

Kaithi

§

Kannada

Kannada

§

KannadaV2

Kannada

§

Katakana

Katakana

§

KayahLi

Kayah Li

§

Kharosthi

Kharosthi

§

Khmer

Khmer

§

Khojki

Khojki

§

Khudawadi

Khudawadi

§

Lao

Lao

§

Latin

Latin

§

Lepcha

Lepcha

§

Limbu

Limbu

§

LinearA

Linear A

§

LinearB

Linear B

§

Lisu

Lisu (Fraser)

§

Lycian

Lycian

§

Lydian

Lydian

§

Mahajani

Mahajani

§

Malayalam

Malayalam

§

MalayalamV2

Malayalam

§

Mandaic

Mandaic, Mandaean

§

Manichaean

Manichaean

§

Marchen

Marchen

§

MathematicalAlphanumericSymbols

Mathematical Alphanumeric Symbols

§

MeiteiMayek

Meitei Mayek (Meithei, Meetei)

§

MendeKikakui

Mende Kikakui

§

MeroiticCursive

Meroitic Cursive

§

MeroiticHieroglyphs

Meroitic Hieroglyphs

§

Miao

Miao

§

Modi

Modi

§

Mongolian

Mongolian

§

Mro

Mro

§

Multani

Multani

§

MusicalSymbols

Musical Symbols

§

Myanmar

Myanmar

§

MyanmarV2

Myanmar

§

Nabataean

Nabataean

§

Newa

Newa

§

NewTaiLue

New Tai Lue

§

NKo

N’Ko

§

Odia

Odia

§

OdiaV2

Odia

§

Ogham

Ogham

§

OlChiki

Ol Chiki

§

OldItalic

Old Italic

§

OldHungarian

Old Hungarian

§

OldNorthArabian

Old North Arabian

§

OldPermic

Old Permic

§

OldPersianCuneiform

Old Persian Cuneiform

§

OldSouthArabian

Old South Arabian

§

OldTurkic

Old Turkic, Orkhon Runic

§

Osage

Osage

§

Osmanya

Osmanya

§

PahawhHmong

Pahawh Hmong

§

Palmyrene

Palmyrene

§

PauCinHau

Pau Cin Hau

§

Phagspa

Phags-pa

§

Phoenician

Phoenician

§

PsalterPahlavi

Psalter Pahlavi

§

Rejang

Rejang

§

Runic

Runic

§

Samaritan

Samaritan

§

Saurashtra

Saurashtra

§

Sharada

Sharada

§

Shavian

Shavian

§

Siddham

Siddham

§

SignWriting

Sign Writing

§

Sinhala

Sinhala

§

SoraSompeng

Sora Sompeng

§

SumeroAkkadianCuneiform

Sumero-Akkadian Cuneiform

§

Sundanese

Sundanese

§

SylotiNagri

Syloti Nagri

§

Syriac

Syriac

§

Tagalog

Tagalog

§

Tagbanwa

Tagbanwa

§

TaiLe

Tai Le

§

TaiTham

Tai Tham (Lanna)

§

TaiViet

Tai Viet

§

Takri

Takri

§

Tamil

Tamil

§

TamilV2

Tamil

§

Tangut

Tangut

§

Telugu

Telugu

§

TeluguV2

Telugu

§

Thaana

Thaana

§

Thai

Thai

§

Tibetan

Tibetan

§

Tifinagh

Tifinagh

§

Tirhuta

Tirhuta

§

UgariticCuneiform

Ugaritic Cuneiform

§

Vai

Vai

§

WarangCiti

Warang Citi

§

Yi

Yi

Implementations§

source§

impl Script

source

pub fn from_tag(tag: &Tag) -> Option<Script>

Create an instance from a tag.

source

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

Return the name.

Trait Implementations§

source§

impl Clone for Script

source§

fn clone(&self) -> Script

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 Script

source§

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

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

impl From<Script> for Tag

source§

fn from(script: Script) -> Tag

Converts to this type from the input type.
source§

impl Hash for Script

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

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

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

Compares and returns the maximum of two values. Read more
1.21.0 · source§

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

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

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

impl PartialEq<Script> for Script

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Script> 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 · source§

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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Script

source§

impl Eq for Script

source§

impl StructuralEq for Script

source§

impl StructuralPartialEq for Script

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.