pub enum Whatsit {
Show 17 variants
Open {
stream: u32,
name: Vec<u8>,
},
Write {
stream: i32,
data: TokenList,
},
Close {
stream: u32,
},
Special {
data: Vec<u8>,
},
LateLua {
data: LateData,
name: Vec<u8>,
},
PdfLiteral {
mode: u8,
data: LateData,
late: bool,
},
SavePos,
PdfColorstack {
stack: i32,
cmd: u8,
data: Vec<u8>,
},
PdfSetmatrix {
data: Vec<u8>,
},
PdfSave,
PdfRestore,
PdfAnnot {
dims: [i32; 3],
objnum: i32,
data: Vec<u8>,
},
PdfStartLink {
dims: [i32; 3],
objnum: i32,
attr: Vec<u8>,
action: PdfAction,
},
PdfEndLink,
PdfDest {
id: DestId,
view: DestView,
},
PdfRefobj {
objnum: i32,
},
Other {
fields: Vec<i64>,
data: Vec<u8>,
},
}Expand description
Whatsit payloads.
Variants§
Open
\openout.
Write
\write.
Close
\closeout.
Special
\special.
LateLua
\latelua.
PdfLiteral
\pdfextension literal and friends.
Fields
SavePos
\savepos.
PdfColorstack
\pdfextension colorstack.
PdfSetmatrix
\pdfextension setmatrix.
PdfSave
\pdfextension save.
PdfRestore
\pdfextension restore.
PdfAnnot
\pdfextension annot.
Fields
PdfStartLink
\pdfextension startlink.
Fields
PdfEndLink
\pdfextension endlink.
PdfDest
\pdfextension dest.
PdfRefobj
\pdfextension refobj.
Other
Other whatsits, kept opaque for now.
Trait Implementations§
impl StructuralPartialEq for Whatsit
Auto Trait Implementations§
impl !Send for Whatsit
impl !Sync for Whatsit
impl Freeze for Whatsit
impl RefUnwindSafe for Whatsit
impl Unpin for Whatsit
impl UnsafeUnpin for Whatsit
impl UnwindSafe for Whatsit
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