Struct swash::WritingSystem[][src]

pub struct WritingSystem<'a> { /* fields omitted */ }

Script, language and associated typographic features available in a font.

Implementations

impl<'a> WritingSystem<'a>[src]

pub fn script_tag(&self) -> Tag[src]

Returns the OpenType script tag for the writing system.

pub fn language_tag(&self) -> Tag[src]

Returns the OpenType language tag for the writing system.

pub fn script(&self) -> Option<Script>[src]

Returns the script for the writing system.

pub fn language(&self) -> Option<Language>[src]

Returns the language for the writing system.

pub fn features(&self) -> Features<'a>

Notable traits for Features<'a>

impl<'a> Iterator for Features<'a> type Item = Feature;
[src]

Returns an iterator over the features provided by the writing system.

Trait Implementations

impl<'a> Clone for WritingSystem<'a>[src]

impl<'a> Copy for WritingSystem<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for WritingSystem<'a>

impl<'a> Send for WritingSystem<'a>

impl<'a> Sync for WritingSystem<'a>

impl<'a> Unpin for WritingSystem<'a>

impl<'a> UnwindSafe for WritingSystem<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.