pub enum GlyphDataError {
UserFile {
path: PathBuf,
reason: ErrorKind,
},
ReaderError(Error),
XmlAttributeError(AttrError),
InvalidCategory(SmolStr),
InvalidSubcategory(SmolStr),
InvalidScript(SmolStr),
WrongFirstElement,
MissingRequiredAttribute {
attributes: String,
missing: &'static str,
},
InvalidUnicode {
raw: String,
inner: ParseIntError,
},
UnknownAttribute(String),
}Variants§
UserFile
ReaderError(Error)
XmlAttributeError(AttrError)
InvalidCategory(SmolStr)
InvalidSubcategory(SmolStr)
InvalidScript(SmolStr)
WrongFirstElement
MissingRequiredAttribute
InvalidUnicode
UnknownAttribute(String)
Trait Implementations§
Source§impl Clone for GlyphDataError
impl Clone for GlyphDataError
Source§fn clone(&self) -> GlyphDataError
fn clone(&self) -> GlyphDataError
Returns a duplicate 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 GlyphDataError
impl Debug for GlyphDataError
Source§impl Display for GlyphDataError
impl Display for GlyphDataError
Source§impl Error for GlyphDataError
impl Error for GlyphDataError
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<AttrError> for GlyphDataError
impl From<AttrError> for GlyphDataError
Auto Trait Implementations§
impl Freeze for GlyphDataError
impl !RefUnwindSafe for GlyphDataError
impl Send for GlyphDataError
impl Sync for GlyphDataError
impl Unpin for GlyphDataError
impl !UnwindSafe for GlyphDataError
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.