Enum norad::error::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 24 variants DowngradeUnsupported, PreexistingPublicObjectLibsKey, MissingDefaultLayer, MissingLayer(String), DuplicateLayer(String), InvalidColor(InvalidColorString), DuplicateGlyph { layer: String, glyph: String, }, MissingGlyph { layer: String, glyph: String, }, IoError(IoError), ParseError(XmlError), Glif(GlifError), GlifWrite(GlifWriteError), PlistError(PlistError), InvalidFontInfo, FontInfoUpconversion, InvalidGroups(GroupsValidationError), GroupsUpconversionFailure(GroupsValidationError), ExpectedPlistDictionary(String), ExpectedPlistString, ExpectedPositiveValue, ConvertContour(ErrorKind), MissingFile(String), MissingUfoDir(String), InvalidStoreEntry(PathBufStoreError),
}
Expand description

Errors that occur while working with font objects.

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.
DowngradeUnsupported

An error returned when trying to save an UFO in anything less than the latest version.

PreexistingPublicObjectLibsKey

An error returned when trying to save a Glyph that contains a public.objectLibs lib key already (the key is automatically managed by Norad).

MissingDefaultLayer
MissingLayer(String)

Tuple Fields of MissingLayer

0: String
DuplicateLayer(String)

Tuple Fields of DuplicateLayer

0: String
InvalidColor(InvalidColorString)

Tuple Fields of InvalidColor

0: InvalidColorString
DuplicateGlyph

Fields of DuplicateGlyph

layer: Stringglyph: String
MissingGlyph

Fields of MissingGlyph

layer: Stringglyph: String
IoError(IoError)

Tuple Fields of IoError

0: IoError
ParseError(XmlError)

Tuple Fields of ParseError

0: XmlError
Glif(GlifError)

Tuple Fields of Glif

0: GlifError
GlifWrite(GlifWriteError)

Tuple Fields of GlifWrite

0: GlifWriteError
PlistError(PlistError)

Tuple Fields of PlistError

0: PlistError
InvalidFontInfo
FontInfoUpconversion
InvalidGroups(GroupsValidationError)

Tuple Fields of InvalidGroups

0: GroupsValidationError
GroupsUpconversionFailure(GroupsValidationError)

Tuple Fields of GroupsUpconversionFailure

0: GroupsValidationError
ExpectedPlistDictionary(String)

Tuple Fields of ExpectedPlistDictionary

0: String
ExpectedPlistString
ExpectedPositiveValue
ConvertContour(ErrorKind)

Tuple Fields of ConvertContour

0: ErrorKind
MissingFile(String)

Tuple Fields of MissingFile

0: String
MissingUfoDir(String)

Tuple Fields of MissingUfoDir

0: String
InvalidStoreEntry(PathBufStoreError)

Tuple Fields of InvalidStoreEntry

0: PathBuf1: StoreError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.