pub enum LuaItem {
Text {
text: Vec<u8>,
kind: LuaLineKind,
catmode: CatMode,
},
Tokens(Vec<Token>),
}Expand description
One item printed from Lua during a \directlua call.
Variants§
Text
A line of text.
Fields
§
kind: LuaLineKindHow it is scanned.
Tokens(Vec<Token>)
Tokens injected directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaItem
impl RefUnwindSafe for LuaItem
impl Send for LuaItem
impl Sync for LuaItem
impl Unpin for LuaItem
impl UnsafeUnpin for LuaItem
impl UnwindSafe for LuaItem
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