pub struct Reply {
pub pages: Vec<Page>,
pub first: usize,
pub book_pages: usize,
pub fonts: Vec<FontRefEntry>,
pub assets: Vec<Asset>,
pub warnings: Vec<Warning>,
}Expand description
What one wire reply carried, and where it falls in the book.
Distinct from LayoutOutput, whose pages is always the whole
run’s: a reply’s pages is a slice, first is where that slice
begins (counting from 0), and book_pages is how many pages the
book has, so a reply carrying page 12 alone still answers “page 12
of 337”.
Fields§
§pages: Vec<Page>The pages this reply carries, in reading order.
first: usizeThe index of pages[0] in the book. Zero for a whole-book reply.
book_pages: usizeHow many pages the book has, which is more than pages.len()
for anything short of a whole-book reply.
fonts: Vec<FontRefEntry>The whole run’s font table, unsliced.
assets: Vec<Asset>The whole run’s asset table, unsliced.
warnings: Vec<Warning>The whole run’s warnings, unsliced.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reply
impl<'de> Deserialize<'de> for Reply
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
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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.