#[non_exhaustive]pub enum FontError {
NotFound {
family: String,
},
Invalid {
family: String,
message: String,
},
ShapingUnsupported {
message: String,
},
}Expand description
Font system failure.
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.
NotFound
Font was not found by the loader.
Invalid
Font exists but cannot satisfy the request.
ShapingUnsupported
Text shaping is not supported by this font system.
Trait Implementations§
impl Eq for FontError
impl StructuralPartialEq for FontError
Auto Trait Implementations§
impl Freeze for FontError
impl RefUnwindSafe for FontError
impl Send for FontError
impl Sync for FontError
impl Unpin for FontError
impl UnsafeUnpin for FontError
impl UnwindSafe for FontError
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