Struct tengwar::characters::Glyph[][src]

pub struct Glyph {
    pub cons: Option<char>,
    pub vowel: Option<Tehta>,
    pub silme: bool,
    pub nasal: bool,
    pub labial: bool,
    pub palatal: bool,
    pub long_cons: bool,
    pub long_vowel: bool,
    pub long_first: bool,
}

Fields

cons: Option<char>

A consonant character.

vowel: Option<Tehta>

A diacritical vowel to modify the consonant.

silme: bool

If Silmë follows another tengwa, the base character may be modified by a sa-rincë instead.

nasal: bool

A labialized consonant is represented by an additional diacritic.

labial: bool

A labialized consonant is represented by an additional diacritic.

palatal: bool

A palatalized vowel is represented by an additional diacritic.

long_cons: boollong_vowel: boollong_first: bool

Indicates whether a long vowel using the extended “Ára” Telco should be placed before this glyph.

Implementations

impl Glyph[src]

pub const fn new() -> Self[src]

pub const fn new_both(cons: char, vowel: Tehta) -> Self[src]

pub const fn new_cons(cons: char, long: bool) -> Self[src]

pub const fn new_vowel(vowel: Tehta, long: bool) -> Self[src]

pub const fn with_labial(self) -> Self[src]

pub const fn with_nasal(self) -> Self[src]

pub const fn with_palatal(self) -> Self[src]

pub const fn with_silme(self) -> Self[src]

Trait Implementations

impl Clone for Glyph[src]

impl Default for Glyph[src]

impl Display for Glyph[src]

Auto Trait Implementations

impl RefUnwindSafe for Glyph

impl Send for Glyph

impl Sync for Glyph

impl Unpin for Glyph

impl UnwindSafe for Glyph

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> ToString for T where
    T: Display + ?Sized
[src]

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.