Enum theme_parser::parser::pff2::FontValidationError
source · pub enum FontValidationError {
EmptyName,
ZeroMaxCharWidth,
ZeroMaxCharHeight,
ZeroAscent,
ZeroDescent,
NoGlyphs,
GlyphsNotSortedAscending,
}
Variants§
EmptyName
Font has no name
ZeroMaxCharWidth
The dimentions of the characters are 0
ZeroMaxCharHeight
The dimentions of the characters are 0
ZeroAscent
Ascent cannot be 0
ZeroDescent
Descent cannot be 0
NoGlyphs
Font contains no glyphs or they could not be read
GlyphsNotSortedAscending
Font must store glyphs in sorted ascending order
Trait Implementations§
source§impl Clone for FontValidationError
impl Clone for FontValidationError
source§fn clone(&self) -> FontValidationError
fn clone(&self) -> FontValidationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FontValidationError
impl Debug for FontValidationError
source§impl Display for FontValidationError
impl Display for FontValidationError
source§impl Error for FontValidationError
impl Error for FontValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 FontValidationError
impl PartialEq for FontValidationError
source§fn eq(&self, other: &FontValidationError) -> bool
fn eq(&self, other: &FontValidationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FontValidationError
impl StructuralEq for FontValidationError
impl StructuralPartialEq for FontValidationError
Auto Trait Implementations§
impl RefUnwindSafe for FontValidationError
impl Send for FontValidationError
impl Sync for FontValidationError
impl Unpin for FontValidationError
impl UnwindSafe for FontValidationError
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