pub enum FontCacheError<E> {
UserError(E),
NoLoadedFont(String),
NoRenderedFace(String, f32),
MissingGlyph(char),
}Expand description
Drawing text is no easy business. Here’s a list of everything that could go wrong.
Variants§
UserError(E)
An error that comes from the bitmap transformation
NoLoadedFont(String)
The font has not been loaded
NoRenderedFace(String, f32)
A face has not been loaded and then rendered
MissingGlyph(char)
A glyph is missing from the font file
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for FontCacheError<E>where
E: Freeze,
impl<E> RefUnwindSafe for FontCacheError<E>where
E: RefUnwindSafe,
impl<E> Send for FontCacheError<E>where
E: Send,
impl<E> Sync for FontCacheError<E>where
E: Sync,
impl<E> Unpin for FontCacheError<E>where
E: Unpin,
impl<E> UnwindSafe for FontCacheError<E>where
E: UnwindSafe,
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