Skip to main content

GeneratedLayoutCapture

Struct GeneratedLayoutCapture 

Source
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: usize

Number of times a page was built and sent to output.

§shipouts: usize

Number of completed shipout calls.

§special_outputs: usize

Number of \special outputs recorded.

§picture_loads: usize

Number of picture file loads.

§source_specials: usize

Number of source special whatsits emitted.

§write_whatsit_diagnostics: usize

Number of \write whatsit diagnostics recorded.

§pdf_extensions: usize

Number of pdf extension calls recorded.

§transcript_bytes: usize

Total bytes written to the engine transcript.

§page_top_prunes: usize

Number 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

Source

pub fn from_engine(engine: &PortableTexEngine<'_>) -> Self

Reads capture statistics directly from a running engine.

Source

pub fn last_shipout_snapshot( &self, engine: &PortableTexEngine<'_>, ) -> Option<GeneratedNodeSnapshot>

Snapshots the last shipped out box, or None if none was shipped.

Source

pub fn to_fragment( &self, engine: &PortableTexEngine<'_>, metadata: FragmentMetadata, ) -> Option<Fragment>

Converts the captured output to an IR Fragment.

Source

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.

Source

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

Source§

fn clone(&self) -> GeneratedLayoutCapture

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 Copy for GeneratedLayoutCapture

Source§

impl Debug for GeneratedLayoutCapture

Source§

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

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

impl Default for GeneratedLayoutCapture

Source§

fn default() -> GeneratedLayoutCapture

Returns the “default value” for a type. Read more
Source§

impl Eq for GeneratedLayoutCapture

Source§

impl PartialEq for GeneratedLayoutCapture

Source§

fn eq(&self, other: &GeneratedLayoutCapture) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for GeneratedLayoutCapture

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.