pub enum PsValue {
Show 21 variants
Null,
Mark,
DictMark,
Bool(bool),
Int(i32),
Real(f64),
Name(NameId),
String {
entity: EntityId,
start: u32,
len: u32,
},
Array {
entity: EntityId,
start: u32,
len: u32,
},
PackedArray {
entity: EntityId,
start: u32,
len: u32,
},
Dict(EntityId),
Operator(OpCode),
File(EntityId),
Save(SaveLevel),
FontID(i32),
Gstate(u32),
Stopped,
Loop(EntityId),
HardReturn,
DictEnd(EntityId),
ExecArray {
entity: EntityId,
start: u32,
len: u32,
pos: u32,
},
}Expand description
The value payload of a PostScript object.
Variants§
Null
Mark
DictMark
Dict mark from << — distinguished from Mark so ] only matches [-marks.
Bool(bool)
Int(i32)
Real(f64)
Name(NameId)
String
Array
PackedArray
Dict(EntityId)
Operator(OpCode)
File(EntityId)
Save(SaveLevel)
FontID(i32)
Gstate(u32)
Gstate object (index into Context.gstate_store)
Stopped
Loop(EntityId)
HardReturn
DictEnd(EntityId)
Marker that conditionally pops the dict stack when reached (used by
resource operators to clean up after dispatching to PS-defined category
procedures). Carries the expected entity so we only pop if it’s still
on top — the PS procedure may have already called end.
ExecArray
Procedure cursor on the exec stack — tracks position within a procedure
being executed. The eval loop advances pos one element at a time.
Trait Implementations§
impl Copy for PsValue
impl StructuralPartialEq for PsValue
Auto Trait Implementations§
impl Freeze for PsValue
impl RefUnwindSafe for PsValue
impl Send for PsValue
impl Sync for PsValue
impl Unpin for PsValue
impl UnsafeUnpin for PsValue
impl UnwindSafe for PsValue
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