#[non_exhaustive]pub struct PageFrame {
pub page_number: usize,
pub width: f64,
pub height: f64,
pub elements: Vec<PositionedElement>,
pub background: Option<Paint>,
}Expand description
A single page of laid-out content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page_number: usize1-based page number.
width: f64Page width in points.
height: f64Page height in points.
elements: Vec<PositionedElement>All positioned elements on this page.
background: Option<Paint>Optional paint behind every page element.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageFrame
impl RefUnwindSafe for PageFrame
impl Send for PageFrame
impl Sync for PageFrame
impl Unpin for PageFrame
impl UnsafeUnpin for PageFrame
impl UnwindSafe for PageFrame
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