pub struct StomachData<ET: EngineTypes> {Show 24 fields
pub page: Vec<VNode<ET>>,
pub open_lists: Vec<NodeList<ET>>,
pub pagegoal: ET::Dim,
pub pagetotal: ET::Dim,
pub pagestretch: ET::Dim,
pub pagefilstretch: ET::Dim,
pub pagefillstretch: ET::Dim,
pub pagefilllstretch: ET::Dim,
pub pageshrink: ET::Dim,
pub pagedepth: ET::Dim,
pub prevdepth: ET::Dim,
pub spacefactor: i32,
pub topmarks: HMap<usize, TokenList<ET::Token>>,
pub firstmarks: HMap<usize, TokenList<ET::Token>>,
pub botmarks: HMap<usize, TokenList<ET::Token>>,
pub splitfirstmarks: HMap<usize, TokenList<ET::Token>>,
pub splitbotmarks: HMap<usize, TokenList<ET::Token>>,
pub page_contains_boxes: bool,
pub lastpenalty: i32,
pub prevgraf: u16,
pub in_output: bool,
pub deadcycles: usize,
pub vadjusts: Vec<VNode<ET>>,
pub inserts: Vec<(usize, Box<[VNode<ET>]>)>,
}Expand description
All the mutable data of the Stomach - i.e. the current page, the current list(s), etc.
TODO: should be overhauled; this is just a rough approximation of what needs to happen and can be made more efficient and more correct.
Fields§
§page: Vec<VNode<ET>>§open_lists: Vec<NodeList<ET>>§pagegoal: ET::Dim§pagetotal: ET::Dim§pagestretch: ET::Dim§pagefilstretch: ET::Dim§pagefillstretch: ET::Dim§pagefilllstretch: ET::Dim§pageshrink: ET::Dim§pagedepth: ET::Dim§prevdepth: ET::Dim§spacefactor: i32§topmarks: HMap<usize, TokenList<ET::Token>>§firstmarks: HMap<usize, TokenList<ET::Token>>§botmarks: HMap<usize, TokenList<ET::Token>>§splitfirstmarks: HMap<usize, TokenList<ET::Token>>§splitbotmarks: HMap<usize, TokenList<ET::Token>>§page_contains_boxes: bool§lastpenalty: i32§prevgraf: u16§in_output: bool§deadcycles: usize§vadjusts: Vec<VNode<ET>>§inserts: Vec<(usize, Box<[VNode<ET>]>)>Implementations§
Source§impl<ET: EngineTypes> StomachData<ET>
impl<ET: EngineTypes> StomachData<ET>
Trait Implementations§
Source§impl<ET: Clone + EngineTypes> Clone for StomachData<ET>
impl<ET: Clone + EngineTypes> Clone for StomachData<ET>
Source§fn clone(&self) -> StomachData<ET>
fn clone(&self) -> StomachData<ET>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<ET: Debug + EngineTypes> Debug for StomachData<ET>
impl<ET: Debug + EngineTypes> Debug for StomachData<ET>
Source§impl<ET: EngineTypes> Default for StomachData<ET>
impl<ET: EngineTypes> Default for StomachData<ET>
Auto Trait Implementations§
impl<ET> Freeze for StomachData<ET>
impl<ET> !RefUnwindSafe for StomachData<ET>
impl<ET> !Send for StomachData<ET>
impl<ET> !Sync for StomachData<ET>
impl<ET> Unpin for StomachData<ET>where
<ET as EngineTypes>::Dim: Unpin,
<ET as EngineTypes>::CustomNode: Unpin,
<<ET as EngineTypes>::File as File>::SourceRefID: Unpin,
<ET as EngineTypes>::Char: Unpin,
<ET as EngineTypes>::Token: Unpin,
<ET as EngineTypes>::Font: Unpin,
<ET as EngineTypes>::MuDim: Unpin,
ET: Unpin,
impl<ET> UnsafeUnpin for StomachData<ET>
impl<ET> !UnwindSafe for StomachData<ET>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().