pub enum TypefaceError {
InvalidFont,
InvalidVariation {
tag: [u8; 4],
},
}Expand description
Why bytes could not become a typeface.
Variants§
InvalidFont
The bytes are not a font this crate reads.
InvalidVariation
A variation names an axis the font lacks, or a value outside its range.
Trait Implementations§
Source§impl Debug for TypefaceError
impl Debug for TypefaceError
Source§impl Display for TypefaceError
impl Display for TypefaceError
Source§impl Error for TypefaceError
impl Error for TypefaceError
1.30.0 · 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()
Source§impl PartialEq for TypefaceError
impl PartialEq for TypefaceError
impl StructuralPartialEq for TypefaceError
Auto Trait Implementations§
impl Forget for TypefaceError
impl Freeze for TypefaceError
impl Move for TypefaceError
impl RefUnwindSafe for TypefaceError
impl Send for TypefaceError
impl Sync for TypefaceError
impl Unpin for TypefaceError
impl UnsafeUnpin for TypefaceError
impl UnwindSafe for TypefaceError
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