#[non_exhaustive]pub enum GlyphOrderError {
NameError {
name: SmolStr,
},
MissingNotDef,
TooManyGlyphs {
found: u32,
},
}Expand description
An error that occurs when loading a raw glyph order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for GlyphOrderError
impl Clone for GlyphOrderError
Source§fn clone(&self) -> GlyphOrderError
fn clone(&self) -> GlyphOrderError
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 moreSource§impl Debug for GlyphOrderError
impl Debug for GlyphOrderError
Source§impl Display for GlyphOrderError
impl Display for GlyphOrderError
Source§impl Error for GlyphOrderError
impl Error for GlyphOrderError
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 From<GlyphOrderError> for UfoGlyphOrderError
impl From<GlyphOrderError> for UfoGlyphOrderError
Source§fn from(source: GlyphOrderError) -> Self
fn from(source: GlyphOrderError) -> Self
Converts to this type from the input type.
Source§impl From<GlyphOrderError> for FontGlyphOrderError
impl From<GlyphOrderError> for FontGlyphOrderError
Source§fn from(source: GlyphOrderError) -> Self
fn from(source: GlyphOrderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GlyphOrderError
impl RefUnwindSafe for GlyphOrderError
impl Send for GlyphOrderError
impl Sync for GlyphOrderError
impl Unpin for GlyphOrderError
impl UnsafeUnpin for GlyphOrderError
impl UnwindSafe for GlyphOrderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.