Struct tengwar::characters::tema::Tyelle
source · pub struct Tyelle {
pub stem_dn: bool,
pub stem_up: bool,
pub doubled: bool,
}
Expand description
A small type to represent the specific shape of a regular Tengwa.
Fields§
§stem_dn: bool
§stem_up: bool
§doubled: bool
Implementations§
source§impl Tyelle
impl Tyelle
pub const fn is_double(&self) -> bool
pub const fn is_ascending(&self) -> bool
pub const fn is_descending(&self) -> bool
pub const fn is_extended(&self) -> bool
pub const fn is_short(&self) -> bool
sourcepub const fn on_tema<'t>(&self, tema: &'t Tema) -> TengwaRegular<'t>
pub const fn on_tema<'t>(&self, tema: &'t Tema) -> TengwaRegular<'t>
Return the TengwaRegular
found at this Tyellë on a given Tema
.
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
pub fn make_single(&mut self)
pub fn make_double(&mut self)
pub fn make_ascending(&mut self)
pub fn make_descending(&mut self)
pub fn make_extended(&mut self)
pub fn make_short(&mut self)
Trait Implementations§
impl Copy for Tyelle
Auto Trait Implementations§
impl RefUnwindSafe for Tyelle
impl Send for Tyelle
impl Sync for Tyelle
impl Unpin for Tyelle
impl UnwindSafe for Tyelle
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