#[repr(i32)]pub enum Error {
Show 94 variants
Ok = 0,
CannotOpenResource = 1,
UnknownFileFormat = 2,
InvalidFileFormat = 3,
InvalidVersion = 4,
LowerModuleVersion = 5,
InvalidArgument = 6,
UnimplementedFeature = 7,
InvalidTable = 8,
InvalidOffset = 9,
ArrayTooLarge = 10,
MissingModule = 11,
MissingProperty = 12,
InvalidGlyphIndex = 16,
InvalidCharacterCode = 17,
InvalidGlyphFormat = 18,
CannotRenderGlyph = 19,
InvalidOutline = 20,
InvalidComposite = 21,
TooManyHints = 22,
InvalidPixelSize = 23,
InvalidHandle = 32,
InvalidLibraryHandle = 33,
InvalidDriverHandle = 34,
InvalidFaceHandle = 35,
InvalidSizeHandle = 36,
InvalidSlotHandle = 37,
InvalidCharMapHandle = 38,
InvalidCacheHandle = 39,
InvalidStreamHandle = 40,
TooManyDrivers = 48,
TooManyExtensions = 49,
OutOfMemory = 64,
UnlistedObject = 65,
CannotOpenStream = 81,
InvalidStreamSeek = 82,
InvalidStreamSkip = 83,
InvalidStreamRead = 84,
InvalidStreamOperation = 85,
InvalidFrameOperation = 86,
NestedFrameAccess = 87,
InvalidFrameRead = 88,
RasterUninitialized = 96,
RasterCorrupted = 97,
RasterOverflow = 98,
RasterNegativeHeight = 99,
TooManyCaches = 112,
InvalidOpcode = 128,
TooFewArguments = 129,
StackOverflow = 130,
CodeOverflow = 131,
BadArgument = 132,
DivideByZero = 133,
InvalidReference = 134,
DebugOpCode = 135,
ENDFInExecStream = 136,
NestedDEFS = 137,
InvalidCodeRange = 138,
ExecutionTooLong = 139,
TooManyFunctionDefs = 140,
TooManyInstructionDefs = 141,
TableMissing = 142,
HorizHeaderMissing = 143,
LocationsMissing = 144,
NameTableMissing = 145,
CMapTableMissing = 146,
HmtxTableMissing = 147,
PostTableMissing = 148,
InvalidHorizMetrics = 149,
InvalidCharMapFormat = 150,
InvalidPPem = 151,
InvalidVertMetrics = 152,
CouldNotFindContext = 153,
InvalidPostTableFormat = 154,
InvalidPostTable = 155,
Syntax = 160,
StackUnderflow = 161,
Ignore = 162,
NoUnicodeGlyphName = 163,
MissingStartfontField = 176,
MissingFontField = 177,
MissingSizeField = 178,
MissingFontboundingboxField = 179,
MissingCharsField = 180,
MissingStartcharField = 181,
MissingEncodingField = 182,
MissingBbxField = 183,
BbxTooBig = 184,
CorruptedFontHeader = 185,
CorruptedFontGlyphs = 186,
Max = 187,
UnexpectedPixelMode = 188,
InvalidPath = 189,
Unknown = 190,
}
Variants§
Ok = 0
CannotOpenResource = 1
UnknownFileFormat = 2
InvalidFileFormat = 3
InvalidVersion = 4
LowerModuleVersion = 5
InvalidArgument = 6
UnimplementedFeature = 7
InvalidTable = 8
InvalidOffset = 9
ArrayTooLarge = 10
MissingModule = 11
MissingProperty = 12
InvalidGlyphIndex = 16
InvalidCharacterCode = 17
InvalidGlyphFormat = 18
CannotRenderGlyph = 19
InvalidOutline = 20
InvalidComposite = 21
TooManyHints = 22
InvalidPixelSize = 23
InvalidHandle = 32
InvalidLibraryHandle = 33
InvalidDriverHandle = 34
InvalidFaceHandle = 35
InvalidSizeHandle = 36
InvalidSlotHandle = 37
InvalidCharMapHandle = 38
InvalidCacheHandle = 39
InvalidStreamHandle = 40
TooManyDrivers = 48
TooManyExtensions = 49
OutOfMemory = 64
UnlistedObject = 65
CannotOpenStream = 81
InvalidStreamSeek = 82
InvalidStreamSkip = 83
InvalidStreamRead = 84
InvalidStreamOperation = 85
InvalidFrameOperation = 86
NestedFrameAccess = 87
InvalidFrameRead = 88
RasterUninitialized = 96
RasterCorrupted = 97
RasterOverflow = 98
RasterNegativeHeight = 99
TooManyCaches = 112
InvalidOpcode = 128
TooFewArguments = 129
StackOverflow = 130
CodeOverflow = 131
BadArgument = 132
DivideByZero = 133
InvalidReference = 134
DebugOpCode = 135
ENDFInExecStream = 136
NestedDEFS = 137
InvalidCodeRange = 138
ExecutionTooLong = 139
TooManyFunctionDefs = 140
TooManyInstructionDefs = 141
TableMissing = 142
HorizHeaderMissing = 143
LocationsMissing = 144
NameTableMissing = 145
CMapTableMissing = 146
HmtxTableMissing = 147
PostTableMissing = 148
InvalidHorizMetrics = 149
InvalidCharMapFormat = 150
InvalidPPem = 151
InvalidVertMetrics = 152
CouldNotFindContext = 153
InvalidPostTableFormat = 154
InvalidPostTable = 155
Syntax = 160
StackUnderflow = 161
Ignore = 162
NoUnicodeGlyphName = 163
MissingStartfontField = 176
MissingFontField = 177
MissingSizeField = 178
MissingFontboundingboxField = 179
MissingCharsField = 180
MissingStartcharField = 181
MissingEncodingField = 182
MissingBbxField = 183
BbxTooBig = 184
CorruptedFontHeader = 185
CorruptedFontGlyphs = 186
Max = 187
UnexpectedPixelMode = 188
InvalidPath = 189
Unknown = 190
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()
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl Eq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more