pub enum PsValue {
None,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
Bytes(Vec<u8>),
List(Vec<PsValue>),
Tuple(Vec<PsValue>),
Dict(IndexMap<Key, PsValue>),
File,
}Expand description
The unpacked value of a PostScript object (unpack_item): the Python
values fontTools’ T1 font dictionaries hold.
Variants§
None
None: the value of operators and null.
Bool(bool)
A bool, from the comparison operators.
Int(i64)
An int; true and false unpack to 1 and 0.
Float(f64)
A float.
Str(String)
A str: names, literals, text strings.
Bytes(Vec<u8>)
A bytes: strings read by readstring, e.g. encrypted charstrings.
List(Vec<PsValue>)
A list: arrays.
Tuple(Vec<PsValue>)
A tuple: procedures.
Dict(IndexMap<Key, PsValue>)
A dict: dictionaries and fonts.
File
A file object (the tokenizer).
Trait Implementations§
impl StructuralPartialEq for PsValue
Auto Trait Implementations§
impl Forget for PsValue
impl Freeze for PsValuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PsValue>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<Key, PsValue>>: Freeze,
impl Move for PsValue
impl RefUnwindSafe for PsValue
impl Send for PsValue
impl Sync for PsValue
impl Unpin for PsValue
impl UnsafeUnpin for PsValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PsValue>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<Key, PsValue>>: UnsafeUnpin,
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