Enum glifparser::error::GlifParserError
source · pub enum GlifParserError {
Show 23 variants
GlifFileIoError(Option<Rc<Error>>),
GlifOutlineHasBadPointType {
ci: usize,
pi: usize,
ptype: PointType,
},
GlifContourHasBadPointType {
pi: usize,
ptype: PointType,
},
GlifFilenameNotSet(String),
GlifFilenameInsane(String),
GlifComponentsCyclical(String),
GlifLibError,
GlifNotUtf8,
XmlParseError(String),
PedanticXmlParseError(String),
XmlWriteError(String),
GlifInputError(String),
ImageNotLoaded,
ImageNotPNG,
ImageNotDecodable,
ImageIoError(Option<Rc<Error>>),
ColorNotRGBA,
TypeConversionError {
req_type: &'static str,
req_variant: String,
},
ContourLenOneUnexpected,
ContourLenZeroUnexpected,
PointIdxOutOfBounds {
idx: usize,
len: usize,
},
ContourNoPrevious(usize),
ContourNoNext(usize),
}Variants§
GlifFileIoError(Option<Rc<Error>>)
OS error when reading glif
GlifOutlineHasBadPointType
Self-built Outline/Contour error.
GlifContourHasBadPointType
GlifFilenameNotSet(String)
Glif filename not set
GlifFilenameInsane(String)
Glif filename doesn’t match name in XML
GlifComponentsCyclical(String)
Components of the glyph form a loop
GlifLibError
.glif has invalid
GlifNotUtf8
Glif isn’t UTF8
XmlParseError(String)
The XML making up the glif is invalid
PedanticXmlParseError(String)
The XML making up the glif is invalid
XmlWriteError(String)
Failures when writing glif XML
GlifInputError(String)
The XML is valid, but doesn’t meet the UFO .glif spec
ImageNotLoaded
Image not yet read
ImageNotPNG
Image not PNG
ImageNotDecodable
Image not decodable
ImageIoError(Option<Rc<Error>>)
OS error when reading image
ColorNotRGBA
Color (for guidelines, images, etc) not RGBA
TypeConversionError
Error for use by parse() trait (FromStr)
ContourLenOneUnexpected
A requested point index is out of bounds
ContourLenZeroUnexpected
PointIdxOutOfBounds
ContourNoPrevious(usize)
No previous on an open contour.
ContourNoNext(usize)
No next on an open contour
Trait Implementations§
source§impl Clone for GlifParserError
impl Clone for GlifParserError
source§fn clone(&self) -> GlifParserError
fn clone(&self) -> GlifParserError
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 GlifParserError
impl Debug for GlifParserError
source§impl Display for GlifParserError
impl Display for GlifParserError
source§impl Error for GlifParserError
impl Error for GlifParserError
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 From<EmitterError> for GlifParserError
impl From<EmitterError> for GlifParserError
source§impl From<Error> for GlifParserError
impl From<Error> for GlifParserError
source§fn from(_e: PlistError) -> Self
fn from(_e: PlistError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for GlifParserError
impl From<FromUtf8Error> for GlifParserError
source§fn from(_: FromUtf8Error) -> Self
fn from(_: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for GlifParserError
impl From<ParseError> for GlifParserError
source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.