#[non_exhaustive]pub enum FontFileError {
Read {
path: PathBuf,
error: Error,
},
Invalid {
path: PathBuf,
face_index: u32,
error: TextRasterError,
},
}Expand description
Why a font file could not be registered (fonts_from_files).
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.
Trait Implementations§
Source§impl Debug for FontFileError
impl Debug for FontFileError
Source§impl Display for FontFileError
impl Display for FontFileError
Source§impl Error for FontFileError
impl Error for FontFileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for FontFileError
impl !UnwindSafe for FontFileError
impl Freeze for FontFileError
impl Send for FontFileError
impl Sync for FontFileError
impl Unpin for FontFileError
impl UnsafeUnpin for FontFileError
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