pub enum OutlineError {
NoGlyfOutlines,
BadGlyphId,
Malformed,
BudgetExceeded,
}Expand description
Why a glyph failed to decode.
Variants§
NoGlyfOutlines
The font has no glyf/loca tables (CFF outlines are tiered out).
BadGlyphId
The glyph id is out of range or its loca entry is unreadable.
Malformed
The glyph data is structurally invalid (truncated arrays, offsets past the record, anchor point numbers out of range, …).
BudgetExceeded
A resource budget tripped: composite depth, component count, or the decoded-point ceiling. Well-formed fonts never hit these.
Trait Implementations§
Source§impl Clone for OutlineError
impl Clone for OutlineError
Source§fn clone(&self) -> OutlineError
fn clone(&self) -> OutlineError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutlineError
Source§impl Debug for OutlineError
impl Debug for OutlineError
Source§impl Display for OutlineError
impl Display for OutlineError
impl Eq for OutlineError
Source§impl Error for OutlineError
impl Error for OutlineError
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 OutlineError
impl PartialEq for OutlineError
impl StructuralPartialEq for OutlineError
Auto Trait Implementations§
impl Freeze for OutlineError
impl RefUnwindSafe for OutlineError
impl Send for OutlineError
impl Sync for OutlineError
impl Unpin for OutlineError
impl UnsafeUnpin for OutlineError
impl UnwindSafe for OutlineError
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