pub struct PageSettings {
pub width: f32,
pub height: f32,
pub margin_top: f32,
pub margin_right: f32,
pub margin_bottom: f32,
pub margin_left: f32,
}Expand description
Paper size and margins, in points.
Fields§
§width: f32Paper width.
height: f32Paper height.
margin_top: f32Top margin.
margin_right: f32Right margin.
margin_bottom: f32Bottom margin.
margin_left: f32Left margin.
Implementations§
Source§impl PageSettings
impl PageSettings
Sourcepub fn content_width(&self) -> f32
pub fn content_width(&self) -> f32
The width between the side margins, where bands are laid out.
Trait Implementations§
Source§impl Clone for PageSettings
impl Clone for PageSettings
Source§fn clone(&self) -> PageSettings
fn clone(&self) -> PageSettings
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 PageSettings
Source§impl Debug for PageSettings
impl Debug for PageSettings
Source§impl Default for PageSettings
impl Default for PageSettings
Source§impl<'de> Deserialize<'de> for PageSettingswhere
PageSettings: Default,
impl<'de> Deserialize<'de> for PageSettingswhere
PageSettings: Default,
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 PageSettings
impl PartialEq for PageSettings
Source§impl Serialize for PageSettings
impl Serialize for PageSettings
impl StructuralPartialEq for PageSettings
Auto Trait Implementations§
impl Freeze for PageSettings
impl RefUnwindSafe for PageSettings
impl Send for PageSettings
impl Sync for PageSettings
impl Unpin for PageSettings
impl UnsafeUnpin for PageSettings
impl UnwindSafe for PageSettings
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