Struct tex_glyphs::glyphs::Glyph
source · pub struct Glyph(/* private fields */);
Expand description
A glyph is a character in some font.
Implementations§
source§impl Glyph
impl Glyph
sourcepub fn name(&self) -> GlyphName<'_>
pub fn name(&self) -> GlyphName<'_>
Get the name of this glyph as a GlyphName
, e.g.
assert_eq!(&Glyph::get("Gamma").to_string(),"Γ");
sourcepub fn is_defined(&self) -> bool
pub fn is_defined(&self) -> bool
Whether this glyph is defined.
Trait Implementations§
source§impl PartialEq for Glyph
impl PartialEq for Glyph
impl Eq for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin 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