pub(crate) enum LoadError {
MalformedFont,
UnnamedFont,
IoError(Error),
}
Expand description
A list of possible font loading errors.
Variants§
MalformedFont
A malformed font.
Typically means that ttf-parser wasn’t able to parse it.
UnnamedFont
A valid TrueType font without a valid Family Name.
IoError(Error)
A file IO related error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadError
impl !RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl !UnwindSafe for LoadError
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