pub enum GlyphPreview {
Ttf(SimpleGlyf),
Svg(Cow<'static, str>),
}Expand description
A preview of a glyph, either as a TTF outline or SVG image
Variants§
Ttf(SimpleGlyf)
TTF formatted glyph data - converted to simple fmt if needed
Svg(Cow<'static, str>)
SVG formatted glyph data, as a string
Trait Implementations§
Source§impl Clone for GlyphPreview
impl Clone for GlyphPreview
Source§fn clone(&self) -> GlyphPreview
fn clone(&self) -> GlyphPreview
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlyphPreview
impl RefUnwindSafe for GlyphPreview
impl Send for GlyphPreview
impl Sync for GlyphPreview
impl Unpin for GlyphPreview
impl UnwindSafe for GlyphPreview
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