#[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
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more