Skip to main content

TsState

Struct TsState 

Source
pub struct TsState {
Show 16 fields pub show_prefix: Vec<u8>, pub font_in_short_display: i64, pub output_active: bool, pub adjust_head: NodeRef, pub pre_adjust_head: NodeRef, pub adjust_tail: Option<NodeRef>, pub pre_adjust_tail: Option<NodeRef>, pub pack_begin_line: i32, pub disc_ptr: [NodeRef; 4], pub attr_cache: Option<(u64, Option<AttrList>)>, pub attr_override: Option<Option<AttrList>>, pub box_attrs: Vec<Option<AttrList>>, pub align: AlignState, pub last_totals: ([i32; 5], [i32; 5]), pub just_box: NodeRef, pub math: MathState,
}
Expand description

Mutable state of the typesetting routines.

Fields§

§show_prefix: Vec<u8>

The nesting string of show_box (cur_length of TeX’s string pool).

§font_in_short_display: i64

The font assumed at the start of short_display (−1 for none).

§output_active: bool

Whether the output routine is active.

§adjust_head: NodeRef

Head of the adjustment list (adjust_head), allocated on first use.

§pre_adjust_head: NodeRef

Head of the pre-adjustment list (LuaTeX’s \vadjust pre).

§adjust_tail: Option<NodeRef>

Tail of the adjustment list collected by hpack, if active.

§pre_adjust_tail: Option<NodeRef>

Tail of the pre-adjustment list collected by hpack, if active.

§pack_begin_line: i32

Line where the current paragraph or alignment started (pack_begin_line), negative for alignments.

§disc_ptr: [NodeRef; 4]

Items removed by the page builder and \vsplit (\pagediscards, \splitdiscards).

§attr_cache: Option<(u64, Option<AttrList>)>

Cached current attribute list: (generation, list).

§attr_override: Option<Option<AttrList>>

The attributes new nodes get instead of the current ones, while mlist_to_hlist builds nodes for a noad (LuaTeX gives them the attributes of the noad or kernel they come from).

§box_attrs: Vec<Option<AttrList>>

The attributes of the boxes being built (indexed from the save stack).

§align: AlignState

Alignment state.

§last_totals: ([i32; 5], [i32; 5])

Stretch and shrink totals of the most recent hpack/vpack.

§just_box: NodeRef

The last line box made by line_break (just_box).

§math: MathState

The state of mlist_to_hlist.

Trait Implementations§

Source§

impl Debug for TsState

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for TsState

Source§

fn default() -> Self

Returns the “default value” for a type. 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> 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, 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.