pub enum GlyphPlacementError {
NonFinite {
index: usize,
},
NegativeExtent {
index: usize,
},
NonFiniteSpacing,
EmptyResourceKey {
index: usize,
},
NegativeAdvance {
index: usize,
},
CollisionClassCount {
placements: usize,
classes: usize,
},
CollisionDirectionCount {
placements: usize,
directions: usize,
},
}Expand description
Validation failures for host-provided print glyph geometry.
Variants§
NonFinite
NegativeExtent
NonFiniteSpacing
EmptyResourceKey
NegativeAdvance
CollisionClassCount
CollisionDirectionCount
Trait Implementations§
Source§impl Clone for GlyphPlacementError
impl Clone for GlyphPlacementError
impl Copy for GlyphPlacementError
Source§impl Debug for GlyphPlacementError
impl Debug for GlyphPlacementError
Source§impl Display for GlyphPlacementError
impl Display for GlyphPlacementError
impl Eq for GlyphPlacementError
Source§impl Error for GlyphPlacementError
impl Error for GlyphPlacementError
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 GlyphPlacementError
impl PartialEq for GlyphPlacementError
impl StructuralPartialEq for GlyphPlacementError
Auto Trait Implementations§
impl Freeze for GlyphPlacementError
impl RefUnwindSafe for GlyphPlacementError
impl Send for GlyphPlacementError
impl Sync for GlyphPlacementError
impl Unpin for GlyphPlacementError
impl UnsafeUnpin for GlyphPlacementError
impl UnwindSafe for GlyphPlacementError
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