pub enum TtfError {
InvalidSignature {
expected: u32,
actual: u32,
},
InvalidChecksum(String),
MissingTable(String),
InvalidOffset(u64),
InvalidSize {
expected: u64,
actual: u64,
},
UnsupportedVersion(u32),
InvalidGlyphIndex(u16),
InvalidNumGlyphs(u16),
Io(Error),
ParseError(String),
InvalidEncoding(String),
InvalidLocaOffset(u32),
}Variants§
InvalidSignature
InvalidChecksum(String)
MissingTable(String)
InvalidOffset(u64)
InvalidSize
UnsupportedVersion(u32)
InvalidGlyphIndex(u16)
InvalidNumGlyphs(u16)
Io(Error)
ParseError(String)
InvalidEncoding(String)
InvalidLocaOffset(u32)
Trait Implementations§
Source§impl Error for TtfError
impl Error for TtfError
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 Freeze for TtfError
impl !RefUnwindSafe for TtfError
impl Send for TtfError
impl Sync for TtfError
impl Unpin for TtfError
impl !UnwindSafe for TtfError
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