pub struct PageState {Show 15 fields
pub contrib_head: NodeRef,
pub page_head: NodeRef,
pub page_tail: NodeRef,
pub so_far: [i32; 8],
pub fi_stretch: i32,
pub max_depth: i32,
pub contents: PageContents,
pub best_break: NodeRef,
pub least_cost: i32,
pub best_size: i32,
pub ins: Vec<PageIns>,
pub last_glue: Option<Glue>,
pub last_penalty: i32,
pub last_kern: i32,
pub last_node_type: i32,
}Expand description
The state of the page builder (§980–§982).
Fields§
§contrib_head: NodeRefHead of the contribution list.
page_head: NodeRefHead of the current page.
page_tail: NodeRefTail of the current page.
so_far: [i32; 8]page_so_far: goal, total, stretch (normal, fil, fill, filll),
shrink, depth. The fi stretch is in PageState::fi_stretch.
fi_stretch: i32Page stretch of order fi (LuaTeX).
max_depth: i32page_max_depth.
contents: PageContentsWhat the page contains.
best_break: NodeRefThe best break found so far (best_page_break).
least_cost: i32Its cost (least_page_cost).
best_size: i32The page goal at the best break (best_size).
ins: Vec<PageIns>Insertion classes on the page, in increasing class order.
last_glue: Option<Glue>\lastskip etc. of the page (last_glue); None if the last item
was not glue.
last_penalty: i32last_penalty.
last_kern: i32last_kern.
last_node_type: i32\lastnodetype of the page.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageState
impl RefUnwindSafe for PageState
impl Send for PageState
impl Sync for PageState
impl Unpin for PageState
impl UnsafeUnpin for PageState
impl UnwindSafe for PageState
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