#[non_exhaustive]pub enum Error {
MissingGlyph(char),
PackingAtlasFailed,
}Expand description
Possible errors that can happen while generating the image
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingGlyph(char)
This error occurs if the library could not get all the information it needs to render a glyph from the font file.
PackingAtlasFailed
This error occurs if too large a font size is specified to neatly pack the requested glyphs in a single texture
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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