pub struct LayoutOutput {
pub pages: Vec<Page>,
pub fonts: Vec<FontRefEntry>,
pub assets: Vec<Asset>,
pub warnings: Vec<Warning>,
pub navigation: Navigation,
}Expand description
Everything the engine produces for one run: pages plus diagnostics.
Fields§
§pages: Vec<Page>The typeset pages, in reading order.
fonts: Vec<FontRefEntry>The fonts this run used, indexed by font_id: both painters
and the PDF writer resolve ids through this table.
assets: Vec<Asset>The images this run placed, indexed by DrawItem::Image.asset.
Layout sized them from their headers and decoded nothing; a
painter takes the url back to its own pixels.
warnings: Vec<Warning>Everything the run had to complain about.
The links a reader follows and the outline of the headings. The PDF writer reads it. The wire does not carry it.
Trait Implementations§
Source§impl Debug for LayoutOutput
impl Debug for LayoutOutput
Source§impl<'de> Deserialize<'de> for LayoutOutput
impl<'de> Deserialize<'de> for LayoutOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutOutput
impl PartialEq for LayoutOutput
Source§impl Serialize for LayoutOutput
impl Serialize for LayoutOutput
impl StructuralPartialEq for LayoutOutput
Auto Trait Implementations§
impl Freeze for LayoutOutput
impl RefUnwindSafe for LayoutOutput
impl Send for LayoutOutput
impl Sync for LayoutOutput
impl Unpin for LayoutOutput
impl UnsafeUnpin for LayoutOutput
impl UnwindSafe for LayoutOutput
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.