Struct tengwar::characters::tema::TengwaRegular
source · pub struct TengwaRegular<'t> {
pub tema: &'t Tema,
pub tyelle: Tyelle,
}
Fields§
§tema: &'t Tema
§tyelle: Tyelle
Implementations§
source§impl<'t> TengwaRegular<'t>
impl<'t> TengwaRegular<'t>
sourcepub const fn find(char: char) -> Option<Self>
pub const fn find(char: char) -> Option<Self>
Try to find the tengwa corresponding to a given char
within the four
primary Témar.
sourcepub const fn wrapped(self) -> Tengwa<'t>
pub const fn wrapped(self) -> Tengwa<'t>
Wrap this regular tengwa in a Tengwa
enum, allowing interoperation
with irregulars.
pub const fn single(self) -> Self
pub const fn double(self) -> Self
pub const fn ascending(self) -> Self
pub const fn descending(self) -> Self
pub const fn extended(self) -> Self
pub const fn short(self) -> Self
Trait Implementations§
source§impl<'t> AsRef<char> for TengwaRegular<'t>
impl<'t> AsRef<char> for TengwaRegular<'t>
source§impl<'t> Clone for TengwaRegular<'t>
impl<'t> Clone for TengwaRegular<'t>
source§fn clone(&self) -> TengwaRegular<'t>
fn clone(&self) -> TengwaRegular<'t>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'t> Debug for TengwaRegular<'t>
impl<'t> Debug for TengwaRegular<'t>
source§impl<'t> From<TengwaRegular<'t>> for BaseChar<'t>
impl<'t> From<TengwaRegular<'t>> for BaseChar<'t>
source§fn from(tengwa: TengwaRegular<'t>) -> Self
fn from(tengwa: TengwaRegular<'t>) -> Self
Converts to this type from the input type.
source§impl<'t> From<TengwaRegular<'t>> for Tengwa<'t>
impl<'t> From<TengwaRegular<'t>> for Tengwa<'t>
source§fn from(tengwa: TengwaRegular<'t>) -> Self
fn from(tengwa: TengwaRegular<'t>) -> Self
Converts to this type from the input type.
source§impl<'t> From<TengwaRegular<'t>> for char
impl<'t> From<TengwaRegular<'t>> for char
source§fn from(tengwa: TengwaRegular<'t>) -> Self
fn from(tengwa: TengwaRegular<'t>) -> Self
Converts to this type from the input type.
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more