pub struct TengwaRegular<'t> {
    pub tema: &'t Tema,
    pub tyelle: Tyelle,
}
Expand description

A small type pairing a Tema with a specific Tyelle.

Fields§

§tema: &'t Tema§tyelle: Tyelle

Implementations§

source§

impl<'t> TengwaRegular<'t>

source

pub const fn new(tema: &'t Tema) -> Self

Define a new tengwa that is part of a given Tema.

source

pub const fn find(char: char) -> Option<Self>

Try to find the tengwa corresponding to a given char within the four primary Témar.

source

pub const fn as_char(&self) -> &char

Return the true char represented by this tengwa.

source

pub const fn wrapped(self) -> Tengwa<'t>

Wrap this regular tengwa in a Tengwa enum, allowing interoperation with irregulars.

source

pub const fn single(self) -> Self

source

pub const fn double(self) -> Self

source

pub const fn ascending(self) -> Self

source

pub const fn descending(self) -> Self

source

pub const fn extended(self) -> Self

source

pub const fn short(self) -> Self

Trait Implementations§

source§

impl<'t> AsRef<char> for TengwaRegular<'t>

source§

fn as_ref(&self) -> &char

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'t> Clone for TengwaRegular<'t>

source§

fn clone(&self) -> TengwaRegular<'t>

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<'t> Debug for TengwaRegular<'t>

source§

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

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

impl<'t> From<TengwaRegular<'t>> for BaseChar<'t>

source§

fn from(tengwa: TengwaRegular<'t>) -> Self

Converts to this type from the input type.
source§

impl<'t> From<TengwaRegular<'t>> for Tengwa<'t>

source§

fn from(tengwa: TengwaRegular<'t>) -> Self

Converts to this type from the input type.
source§

impl<'t> From<TengwaRegular<'t>> for char

source§

fn from(tengwa: TengwaRegular<'t>) -> Self

Converts to this type from the input type.
source§

impl<'t> Copy for TengwaRegular<'t>

Auto Trait Implementations§

§

impl<'t> RefUnwindSafe for TengwaRegular<'t>

§

impl<'t> Send for TengwaRegular<'t>

§

impl<'t> Sync for TengwaRegular<'t>

§

impl<'t> Unpin for TengwaRegular<'t>

§

impl<'t> UnwindSafe for TengwaRegular<'t>

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.