Enum norad::error::GlifLoadError
source · #[non_exhaustive]pub enum GlifLoadError {
Io(Error),
Xml(Error),
XmlAttr(AttrError),
Parse(ErrorKind),
PublicObjectLibsMustBeDictionary,
ObjectLibMustBeDictionary(String),
}
Expand description
An error that occurs while attempting to read a .glif file from disk.
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.
Io(Error)
An std::io::Error
.
Xml(Error)
XmlAttr(AttrError)
An error in an XML attribute
Parse(ErrorKind)
The .glif file was malformed.
PublicObjectLibsMustBeDictionary
The glyph lib’s public.objectLibs
value was something other than a dictionary.
ObjectLibMustBeDictionary(String)
The entry with the given identifier within the glyph lib’s public.objectLibs
dictionary was not a dictionary.
Trait Implementations§
source§impl Debug for GlifLoadError
impl Debug for GlifLoadError
source§impl Display for GlifLoadError
impl Display for GlifLoadError
source§impl Error for GlifLoadError
impl Error for GlifLoadError
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 From<AttrError> for GlifLoadError
impl From<AttrError> for GlifLoadError
source§impl From<Error> for GlifLoadError
impl From<Error> for GlifLoadError
Auto Trait Implementations§
impl Freeze for GlifLoadError
impl !RefUnwindSafe for GlifLoadError
impl Send for GlifLoadError
impl Sync for GlifLoadError
impl Unpin for GlifLoadError
impl !UnwindSafe for GlifLoadError
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