#[repr(i32)]
pub enum Error {
Show 94 variants
Ok,
CannotOpenResource,
UnknownFileFormat,
InvalidFileFormat,
InvalidVersion,
LowerModuleVersion,
InvalidArgument,
UnimplementedFeature,
InvalidTable,
InvalidOffset,
ArrayTooLarge,
MissingModule,
MissingProperty,
InvalidGlyphIndex,
InvalidCharacterCode,
InvalidGlyphFormat,
CannotRenderGlyph,
InvalidOutline,
InvalidComposite,
TooManyHints,
InvalidPixelSize,
InvalidHandle,
InvalidLibraryHandle,
InvalidDriverHandle,
InvalidFaceHandle,
InvalidSizeHandle,
InvalidSlotHandle,
InvalidCharMapHandle,
InvalidCacheHandle,
InvalidStreamHandle,
TooManyDrivers,
TooManyExtensions,
OutOfMemory,
UnlistedObject,
CannotOpenStream,
InvalidStreamSeek,
InvalidStreamSkip,
InvalidStreamRead,
InvalidStreamOperation,
InvalidFrameOperation,
NestedFrameAccess,
InvalidFrameRead,
RasterUninitialized,
RasterCorrupted,
RasterOverflow,
RasterNegativeHeight,
TooManyCaches,
InvalidOpcode,
TooFewArguments,
StackOverflow,
CodeOverflow,
BadArgument,
DivideByZero,
InvalidReference,
DebugOpCode,
ENDFInExecStream,
NestedDEFS,
InvalidCodeRange,
ExecutionTooLong,
TooManyFunctionDefs,
TooManyInstructionDefs,
TableMissing,
HorizHeaderMissing,
LocationsMissing,
NameTableMissing,
CMapTableMissing,
HmtxTableMissing,
PostTableMissing,
InvalidHorizMetrics,
InvalidCharMapFormat,
InvalidPPem,
InvalidVertMetrics,
CouldNotFindContext,
InvalidPostTableFormat,
InvalidPostTable,
Syntax,
StackUnderflow,
Ignore,
NoUnicodeGlyphName,
MissingStartfontField,
MissingFontField,
MissingSizeField,
MissingFontboundingboxField,
MissingCharsField,
MissingStartcharField,
MissingEncodingField,
MissingBbxField,
BbxTooBig,
CorruptedFontHeader,
CorruptedFontGlyphs,
Max,
UnexpectedPixelMode,
InvalidPath,
Unknown,
}
Variants§
Ok
CannotOpenResource
UnknownFileFormat
InvalidFileFormat
InvalidVersion
LowerModuleVersion
InvalidArgument
UnimplementedFeature
InvalidTable
InvalidOffset
ArrayTooLarge
MissingModule
MissingProperty
InvalidGlyphIndex
InvalidCharacterCode
InvalidGlyphFormat
CannotRenderGlyph
InvalidOutline
InvalidComposite
TooManyHints
InvalidPixelSize
InvalidHandle
InvalidLibraryHandle
InvalidDriverHandle
InvalidFaceHandle
InvalidSizeHandle
InvalidSlotHandle
InvalidCharMapHandle
InvalidCacheHandle
InvalidStreamHandle
TooManyDrivers
TooManyExtensions
OutOfMemory
UnlistedObject
CannotOpenStream
InvalidStreamSeek
InvalidStreamSkip
InvalidStreamRead
InvalidStreamOperation
InvalidFrameOperation
NestedFrameAccess
InvalidFrameRead
RasterUninitialized
RasterCorrupted
RasterOverflow
RasterNegativeHeight
TooManyCaches
InvalidOpcode
TooFewArguments
StackOverflow
CodeOverflow
BadArgument
DivideByZero
InvalidReference
DebugOpCode
ENDFInExecStream
NestedDEFS
InvalidCodeRange
ExecutionTooLong
TooManyFunctionDefs
TooManyInstructionDefs
TableMissing
HorizHeaderMissing
LocationsMissing
NameTableMissing
CMapTableMissing
HmtxTableMissing
PostTableMissing
InvalidHorizMetrics
InvalidCharMapFormat
InvalidPPem
InvalidVertMetrics
CouldNotFindContext
InvalidPostTableFormat
InvalidPostTable
Syntax
StackUnderflow
Ignore
NoUnicodeGlyphName
MissingStartfontField
MissingFontField
MissingSizeField
MissingFontboundingboxField
MissingCharsField
MissingStartcharField
MissingEncodingField
MissingBbxField
BbxTooBig
CorruptedFontHeader
CorruptedFontGlyphs
Max
UnexpectedPixelMode
InvalidPath
Unknown
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()