pub enum LineSource {
File {
data: Rc<[u8]>,
pos: usize,
},
Terminal,
Read(u32),
Lines {
lines: VecDeque<Vec<u8>>,
catcodes: Option<u32>,
pseudo: bool,
},
Lua(VecDeque<LuaItem>),
}Expand description
Where the lines of a text level come from.
Variants§
File
A file held in memory, with the byte offset of the next line.
Terminal
The terminal (or the command line for the first line).
Read(u32)
A \read stream: the level holds one line only.
Lines
Lines of a \scantokens pseudo-file or of Lua tex.print.
Fields
Lua(VecDeque<LuaItem>)
Output of tex.print and friends.
Trait Implementations§
Source§impl Clone for LineSource
impl Clone for LineSource
Auto Trait Implementations§
impl !Send for LineSource
impl !Sync for LineSource
impl Freeze for LineSource
impl RefUnwindSafe for LineSource
impl Unpin for LineSource
impl UnsafeUnpin for LineSource
impl UnwindSafe for LineSource
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