pub struct PageGeometry {
pub page_width: f64,
pub page_height: f64,
pub margin_top: f64,
pub margin_right: f64,
pub margin_bottom: f64,
pub margin_left: f64,
pub header_distance: f64,
pub footer_distance: f64,
}Expand description
Page geometry derived from section properties.
Fields§
§page_width: f64§page_height: f64§margin_top: f64§margin_right: f64§margin_bottom: f64§margin_left: f64§header_distance: f64Implementations§
Source§impl PageGeometry
impl PageGeometry
Sourcepub fn content_width(&self) -> f64
pub fn content_width(&self) -> f64
Content area width.
Sourcepub fn content_height(&self) -> f64
pub fn content_height(&self) -> f64
Content area height.
Trait Implementations§
Source§impl Clone for PageGeometry
impl Clone for PageGeometry
Source§fn clone(&self) -> PageGeometry
fn clone(&self) -> PageGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageGeometry
impl Debug for PageGeometry
Source§impl Default for PageGeometry
impl Default for PageGeometry
impl Copy for PageGeometry
Auto Trait Implementations§
impl Freeze for PageGeometry
impl RefUnwindSafe for PageGeometry
impl Send for PageGeometry
impl Sync for PageGeometry
impl Unpin for PageGeometry
impl UnsafeUnpin for PageGeometry
impl UnwindSafe for PageGeometry
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