pub struct LayoutPlan {
pub items: Vec<PackItem>,
pub data: Vec<u8>,
pub xref_predicted: usize,
pub xref_literal: usize,
pub startxref_predicted: bool,
}Expand description
The structural layout plan for a classic-cross-reference PDF: the ordered packed item table, the single literal data object it consumes, and the prediction counters used to describe the plan.
Fields§
§items: Vec<PackItem>Ordered reconstruction items (literal runs, position marks, emitted
offsets), as consumed by Op::PackSegments and Op::PackedChannels.
data: Vec<u8>Every literal byte, in item order. Must be consumed exactly by items.
xref_predicted: usizeNumber of xref entry offsets regenerated from a marked position.
xref_literal: usizeNumber of xref entry offsets stored literally (precondition failed).
startxref_predicted: boolWhether at least one startxref value was regenerated.
Auto Trait Implementations§
impl Freeze for LayoutPlan
impl RefUnwindSafe for LayoutPlan
impl Send for LayoutPlan
impl Sync for LayoutPlan
impl Unpin for LayoutPlan
impl UnsafeUnpin for LayoutPlan
impl UnwindSafe for LayoutPlan
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