pub struct TextLevel {
pub state: LexState,
pub buf: Vec<u32>,
pub loc: usize,
pub source: LineSource,
pub line: i32,
pub name: Vec<u8>,
pub is_input_file: bool,
pub eof_seen: bool,
pub grp_boundary: usize,
pub if_depth: usize,
pub catmode: CatMode,
}Expand description
A text input level.
Fields§
§state: LexStateThe scanner state.
buf: Vec<u32>The characters of the current line, including the end-of-line character if one was appended.
loc: usizeIndex of the next character in buf.
source: LineSourceWhere further lines come from.
line: i32The current line number in this source.
name: Vec<u8>The printable name of the file (for context lines and ( … )).
is_input_file: boolWhether this level was opened by \input (prints parentheses).
eof_seen: boolWhether \everyeof has already been inserted for this file.
grp_boundary: usizeThe group level when the file was opened (e-TeX grp_stack).
if_depth: usizeThe conditional depth when the file was opened (e-TeX if_stack).
catmode: CatModeThe catcode regime of the current line.
Trait Implementations§
Auto Trait Implementations§
impl !Send for TextLevel
impl !Sync for TextLevel
impl Freeze for TextLevel
impl RefUnwindSafe for TextLevel
impl Unpin for TextLevel
impl UnsafeUnpin for TextLevel
impl UnwindSafe for TextLevel
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