pub struct GeneratedLayoutCapture {
pub page_builds: usize,
pub shipouts: usize,
pub special_outputs: usize,
pub picture_loads: usize,
pub source_specials: usize,
pub write_whatsit_diagnostics: usize,
pub pdf_extensions: usize,
pub transcript_bytes: usize,
pub page_top_prunes: usize,
pub last_shipout_box: Option<GeneratedNodeHandle>,
pub captured_fragment_root: Option<GeneratedNodeHandle>,
pub last_abort_status: Option<i32>,
}Expand description
Layout capture from stripped generated engine output.
Fields§
§page_builds: usizeNumber of times a page was built and sent to output.
shipouts: usizeNumber of completed shipout calls.
special_outputs: usizeNumber of \special outputs recorded.
picture_loads: usizeNumber of picture file loads.
source_specials: usizeNumber of source special whatsits emitted.
write_whatsit_diagnostics: usizeNumber of \write whatsit diagnostics recorded.
pdf_extensions: usizeNumber of pdf extension calls recorded.
transcript_bytes: usizeTotal bytes written to the engine transcript.
page_top_prunes: usizeNumber of times the page top was pruned.
last_shipout_box: Option<GeneratedNodeHandle>Node handle of the most recent shipped out box, if any.
captured_fragment_root: Option<GeneratedNodeHandle>Node handle of the captured fragment root, if any.
last_abort_status: Option<i32>Final abort status code from the engine, if it aborted.
Implementations§
Source§impl GeneratedLayoutCapture
impl GeneratedLayoutCapture
Sourcepub fn from_engine(engine: &PortableTexEngine<'_>) -> Self
pub fn from_engine(engine: &PortableTexEngine<'_>) -> Self
Reads capture statistics directly from a running engine.
Sourcepub fn last_shipout_snapshot(
&self,
engine: &PortableTexEngine<'_>,
) -> Option<GeneratedNodeSnapshot>
pub fn last_shipout_snapshot( &self, engine: &PortableTexEngine<'_>, ) -> Option<GeneratedNodeSnapshot>
Snapshots the last shipped out box, or None if none was shipped.
Sourcepub fn to_fragment(
&self,
engine: &PortableTexEngine<'_>,
metadata: FragmentMetadata,
) -> Option<Fragment>
pub fn to_fragment( &self, engine: &PortableTexEngine<'_>, metadata: FragmentMetadata, ) -> Option<Fragment>
Converts the captured output to an IR Fragment.
Sourcepub fn to_fragment_with_source(
&self,
engine: &PortableTexEngine<'_>,
metadata: FragmentMetadata,
_source_name: impl Into<String>,
_source_span: ByteSpan,
) -> Option<Fragment>
pub fn to_fragment_with_source( &self, engine: &PortableTexEngine<'_>, metadata: FragmentMetadata, _source_name: impl Into<String>, _source_span: ByteSpan, ) -> Option<Fragment>
Source provenance parameters are unused because this path does not thread source spans yet.
Sourcepub fn to_fragment_with_recorded_source(
&self,
engine: &PortableTexEngine<'_>,
metadata: FragmentMetadata,
) -> Option<Fragment>
pub fn to_fragment_with_recorded_source( &self, engine: &PortableTexEngine<'_>, metadata: FragmentMetadata, ) -> Option<Fragment>
Converts captured output to an IR Fragment using source spans recorded in the engine.
Trait Implementations§
Source§impl Clone for GeneratedLayoutCapture
impl Clone for GeneratedLayoutCapture
Source§fn clone(&self) -> GeneratedLayoutCapture
fn clone(&self) -> GeneratedLayoutCapture
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more