pub enum HintErrorKind {
Show 22 variants
UnexpectedEndOfBytecode,
UnhandledOpcode(Opcode),
DefinitionInGlyphProgram,
NestedDefinition,
DefinitionTooLarge,
TooManyDefinitions,
InvalidDefinition(usize),
ValueStackOverflow,
ValueStackUnderflow,
CallStackOverflow,
CallStackUnderflow,
InvalidStackValue(i32),
InvalidPointIndex(usize),
InvalidPointRange(usize, usize),
InvalidContourIndex(usize),
InvalidCvtIndex(usize),
InvalidStorageIndex(usize),
DivideByZero,
InvalidZoneIndex(i32),
NegativeLoopCounter,
InvalidJump,
ExceededExecutionBudget,
}Expand description
What went wrong, without the context of where.
Variants§
UnexpectedEndOfBytecode
An instruction’s operands ran past the end of the bytecode.
UnhandledOpcode(Opcode)
The interpreter does not implement this instruction.
DefinitionInGlyphProgram
A glyph program tried to define a function or instruction, which only the font program may do.
NestedDefinition
A function or instruction definition began inside another.
DefinitionTooLarge
A definition exceeded the maximum size of 64k.
TooManyDefinitions
More definitions than the interpreter has room for.
InvalidDefinition(usize)
A call referenced a definition that was never made.
ValueStackOverflow
A push exceeded the value stack.
ValueStackUnderflow
A pop found the value stack empty.
CallStackOverflow
Calls nested deeper than the interpreter allows.
CallStackUnderflow
A return found the call stack empty.
InvalidStackValue(i32)
The value on the stack made no sense for the instruction reading it.
InvalidPointIndex(usize)
A point index was past the end of the zone.
InvalidPointRange(usize, usize)
A point range ran past the end of the zone.
InvalidContourIndex(usize)
A contour index was past the end of the glyph.
InvalidCvtIndex(usize)
A control value table index was out of bounds.
InvalidStorageIndex(usize)
A storage area index was out of bounds.
DivideByZero
A division had a zero divisor.
InvalidZoneIndex(i32)
A zone index other than 0 (twilight) or 1 (glyph).
NegativeLoopCounter
An attempt to set the loop counter to a negative value.
InvalidJump
A jump left the bounds of the program.
ExceededExecutionBudget
The program ran longer than the interpreter’s budget allows.
Trait Implementations§
Source§impl Clone for HintErrorKind
impl Clone for HintErrorKind
Source§fn clone(&self) -> HintErrorKind
fn clone(&self) -> HintErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more