Skip to main content

TextLevel

Struct TextLevel 

Source
pub struct TextLevel {
Show 13 fields 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, pub sync: (u32, i32), pub profile_file: u32,
}
Expand description

A text input level.

Fields§

§state: LexState

The scanner state.

§buf: Vec<u32>

The characters of the current line, including the end-of-line character if one was appended.

§loc: usize

Index of the next character in buf.

§source: LineSource

Where further lines come from.

§line: i32

The current line number in this source.

§name: Vec<u8>

The printable name of the file (for context lines and ( … )).

§is_input_file: bool

Whether this level was opened by \input (prints parentheses).

§eof_seen: bool

Whether \everyeof has already been inserted for this file.

§grp_boundary: usize

The group level when the file was opened (e-TeX grp_stack).

§if_depth: usize

The conditional depth when the file was opened (e-TeX if_stack).

§catmode: CatMode

The catcode regime of the current line.

§sync: (u32, i32)

The SyncTeX tag and line of this level: those of the file, or tag 0 and the number of lines read for other text (observed).

§profile_file: u32

The file’s id for the profiler and origins (see crate::profile); 0 until given.

Trait Implementations§

Source§

impl Clone for TextLevel

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextLevel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.