pub enum Object {
Null,
Bool(bool),
Integer(i64),
Real(f64),
Name(String),
LiteralString(Vec<u8>),
HexString(Vec<u8>),
Array(Vec<Object>),
Dict(Dict),
Reference(ObjectId),
Stream(Stream),
}Expand description
A PDF “any” value — every primitive plus the composite ones.
Round 1 keeps the variant set tight; future rounds (text, encryption, outlines) can extend without breaking writer-only call sites.
Variants§
Null
Bool(bool)
Integer(i64)
Real(f64)
Name(String)
PDF Name object (/Foo). The leading slash is added by the
serializer; values must use the unescaped name characters
(ISO 32000-1 §7.3.5 — printable ASCII excluding the delimiters).
LiteralString(Vec<u8>)
Literal string (...) — bytes go through PDF escape rules.
HexString(Vec<u8>)
Hexadecimal string <...> — used when content might confuse
the literal-string parser (e.g. images embedded inline).
Array(Vec<Object>)
Dict(Dict)
Reference(ObjectId)
Indirect reference (<n> <gen> R). Generation is always 0 in
the writer’s output (objects never get re-released).
Stream(Stream)
Stream object — dictionary describing the payload + the bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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