pub enum LateData {
Tokens(TokenList),
Bytes(Vec<u8>),
Lua {
data: Vec<u8>,
reference: i32,
},
Function {
reference: i32,
},
}Expand description
Data of late whatsits: an unexpanded token list or a string.
Variants§
Tokens(TokenList)
Tokens, expanded at shipout.
Bytes(Vec<u8>)
An already expanded string.
Lua
A string set from Lua outside IniTeX, which LuaTeX keeps as a Lua
reference (observed: shown as <lua data reference N>).
Function
A Lua function (\latelua data set from Lua), called at shipout
with the whatsit; the host keeps it under its reference number
(observed: shown as <function reference N>).
Implementations§
Source§impl LateData
impl LateData
Sourcepub fn bytes(&self) -> Option<&[u8]>
pub fn bytes(&self) -> Option<&[u8]>
The string of a LateData::Bytes or LateData::Lua value.
Trait Implementations§
impl StructuralPartialEq for LateData
Auto Trait Implementations§
impl !Send for LateData
impl !Sync for LateData
impl Freeze for LateData
impl RefUnwindSafe for LateData
impl Unpin for LateData
impl UnsafeUnpin for LateData
impl UnwindSafe for LateData
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