pub enum Token {
Operator(Operator),
InvalidOperator(u8),
InvalidTwoByteOperator(u8),
Operand(Number, Option<BcdComponents>),
}Expand description
Either a PostScript DICT operator or a (numeric) operand.
Variants§
Operator(Operator)
An operator parsed from a DICT.
InvalidOperator(u8)
An opcode that is not a known operator.
Reported rather than refused: a DICT containing one is still a DICT,
and what to do about it is the caller’s decision. FreeType ignores
unknown operators and clears the stack, which is what
entries does; refusing here would leave a caller no way to do the
same through the raw view.
InvalidTwoByteOperator(u8)
As InvalidOperator, for the two-byte form.
Carries the extended opcode only; the byte before it is always the escape.
Operand(Number, Option<BcdComponents>)
A number parsed from a DICT. If the source was in binary coded decimal format, then the second field contains the parsed components.
Trait Implementations§
impl Copy for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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