pub enum ErrorKind {
Show 40 variants
UnsupportedGlifVersion,
UnknownPointType,
WrongFirstElement,
MissingCloseTag,
BadHexValue,
BadNumber,
BadColor,
BadAnchor,
BadPoint,
BadGuideline,
BadComponent,
BadImage,
BadIdentifier,
InvalidName,
BadLib,
UnexpectedDuplicate,
UnexpectedMove,
UnexpectedSmooth,
UnexpectedElement,
UnexpectedAttribute,
UnexpectedEof,
UnexpectedPointAfterOffCurve,
TooManyOffCurves,
PenPathNotStarted,
TrailingOffCurves,
DuplicateIdentifier,
UnexpectedDrawing,
UnfinishedDrawing,
UnexpectedPointField,
UnexpectedComponentField,
UnexpectedAnchorField,
UnexpectedGuidelineField,
UnexpectedImageField,
DuplicateElement(&'static str),
UnexpectedV1Element(&'static str),
UnexpectedV1Attribute(&'static str),
ComponentEmptyBase,
ComponentMissingBase,
LibMustBeDictionary,
BadAngle,
}
Expand description
The reason for a glif parse failure.
Variants§
UnsupportedGlifVersion
The glif version is not supported by this library.
UnknownPointType
An unknown point type.
WrongFirstElement
The first XML element of a glif file is invalid.
MissingCloseTag
Missing a close tag.
BadHexValue
Has an invalid hexadecimal value.
BadNumber
Has an invalid numeric value.
BadColor
Has an invalid color value.
BadAnchor
Has an invalid anchor definition.
BadPoint
Has an invalid point definition.
BadGuideline
Has an invalid guideline definition.
BadComponent
Has an invalid component definition.
BadImage
Has an invalid image definition.
BadIdentifier
Has an invalid identifier.
InvalidName
Name is not a valid Name
.
BadLib
Has an invalid lib.
UnexpectedDuplicate
Has an unexected duplicate value.
UnexpectedMove
Has an unexpected move definition.
UnexpectedSmooth
Has an unexpected smooth definition.
UnexpectedElement
Has an unexpected element definition.
UnexpectedAttribute
Has an unexpected attribute definition.
UnexpectedEof
Has an unexpected end of file definition.
UnexpectedPointAfterOffCurve
Has an unexpected point following an off curve point definition.
TooManyOffCurves
Has too many off curve points in sequence.
PenPathNotStarted
The contour pen path was not started
TrailingOffCurves
Has trailing off curve points defined.
DuplicateIdentifier
Has duplicate identifiers.
UnexpectedDrawing
Has unexepected drawing data.
UnfinishedDrawing
Has incomplete drawing data.
UnexpectedPointField
Has an unexpected point field.
UnexpectedComponentField
Has an unexpected component field.
UnexpectedAnchorField
Has an unexpected anchor field.
UnexpectedGuidelineField
Has an unexpected guideline field.
UnexpectedImageField
Has an unexpected image field.
DuplicateElement(&'static str)
An element that can occur just once occured a second time.
UnexpectedV1Element(&'static str)
An element that can occur just once occured a second time.
UnexpectedV1Attribute(&'static str)
An element that can occur just once occured a second time.
ComponentEmptyBase
A component had an empty base
attribute.
ComponentMissingBase
A component was missing a base
attribute.
LibMustBeDictionary
The glyph ‘lib’ element must contain a dictionary.
BadAngle
An angle was out of bounds.