pub struct Glyph(/* private fields */);Expand description
A glyph is a character in some font.
Implementations§
Source§impl Glyph
impl Glyph
Sourcepub const fn name(&self) -> GlyphName<'_>
pub const fn name(&self) -> GlyphName<'_>
Get the name of this glyph as a GlyphName, e.g.
assert_eq!(&Glyph::get("Gamma").to_string(),"Γ");Sourcepub const fn undefined() -> Self
pub const fn undefined() -> Self
Get the undefined glyph (i.e. the glyph with name .undefined).
Sourcepub const fn is_defined(&self) -> bool
pub const fn is_defined(&self) -> bool
Whether this glyph is defined.
Sourcepub fn as_combinator(&self) -> Option<Combinator>
pub fn as_combinator(&self) -> Option<Combinator>
Convert this glyph to a Combinator
Trait Implementations§
impl Eq for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin for Glyph
impl UnwindSafe for Glyph
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