pub struct GlyphDesc { /* private fields */ }
Available on crate feature
codegen
only.Expand description
Describes a glyph within a font
Implementations§
Source§impl GlyphDesc
impl GlyphDesc
Sourcepub fn new(identifier: &str, glyph: &Glyph) -> Self
pub fn new(identifier: &str, glyph: &Glyph) -> Self
Create a new glyph description from an identifier and a glyph
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Get the identifier of the glyph
Sourcepub fn set_identifier(&mut self, identifier: String)
pub fn set_identifier(&mut self, identifier: String)
Set the identifier of the glyph
Sourcepub fn codegen(&self) -> TokenStream
pub fn codegen(&self) -> TokenStream
Generate code for the glyph
Trait Implementations§
Source§impl Ord for GlyphDesc
impl Ord for GlyphDesc
Source§impl PartialOrd for GlyphDesc
impl PartialOrd for GlyphDesc
impl Eq for GlyphDesc
Auto Trait Implementations§
impl Freeze for GlyphDesc
impl RefUnwindSafe for GlyphDesc
impl Send for GlyphDesc
impl Sync for GlyphDesc
impl Unpin for GlyphDesc
impl UnwindSafe for GlyphDesc
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