pub struct PageContext {
pub page: usize,
pub total_pages: usize,
}Expand description
Passed to Header/Footer closures on every (re-)evaluation. Plain data
only, so it can live in lightweight-pdf-core without pulling in layout/font
knowledge (ADR-010).
Fields§
§page: usize§total_pages: usizeTrait Implementations§
Source§impl Clone for PageContext
impl Clone for PageContext
Source§fn clone(&self) -> PageContext
fn clone(&self) -> PageContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PageContext
Auto Trait Implementations§
impl Freeze for PageContext
impl RefUnwindSafe for PageContext
impl Send for PageContext
impl Sync for PageContext
impl Unpin for PageContext
impl UnsafeUnpin for PageContext
impl UnwindSafe for PageContext
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