Enum tengwar::characters::glyph::Parts
source · pub enum Parts<'t> {
One(TengwaTehta<'t>),
Two(TengwaTehta<'t>, TengwaTehta<'t>),
}
Expand description
A representation of the visual composition of a Glyph
.
Variants§
One(TengwaTehta<'t>)
This glyph can be displayed with only a single base character.
Two(TengwaTehta<'t>, TengwaTehta<'t>)
This glyph requires two base characters to be displayed.
Implementations§
source§impl<'t> Parts<'t>
impl<'t> Parts<'t>
sourcepub const fn lhs(&self) -> &TengwaTehta<'t>
pub const fn lhs(&self) -> &TengwaTehta<'t>
Returns the left-hand TengwaTehta
, if there are two parts; If there
is only one part, returns the one.
sourcepub const fn rhs(&self) -> &TengwaTehta<'t>
pub const fn rhs(&self) -> &TengwaTehta<'t>
Returns the right-hand TengwaTehta
, if there are two parts; If there
is only one part, returns the one.
Trait Implementations§
impl<'t> Copy for Parts<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for Parts<'t>
impl<'t> Send for Parts<'t>
impl<'t> Sync for Parts<'t>
impl<'t> Unpin for Parts<'t>
impl<'t> UnwindSafe for Parts<'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