pub struct PageConfig {
pub size: PageSize,
pub margin: Edges,
pub wrap: bool,
}Expand description
Configuration for a page: size, margins, orientation.
Fields§
§size: PageSizePage size. Defaults to A4.
margin: EdgesPage margins in points (1/72 inch).
wrap: boolWhether this page auto-wraps content that overflows.
Trait Implementations§
Source§impl Clone for PageConfig
impl Clone for PageConfig
Source§fn clone(&self) -> PageConfig
fn clone(&self) -> PageConfig
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 PageConfig
impl Debug for PageConfig
Source§impl Default for PageConfig
impl Default for PageConfig
Source§impl<'de> Deserialize<'de> for PageConfig
impl<'de> Deserialize<'de> for PageConfig
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
Auto Trait Implementations§
impl Freeze for PageConfig
impl RefUnwindSafe for PageConfig
impl Send for PageConfig
impl Sync for PageConfig
impl Unpin for PageConfig
impl UnsafeUnpin for PageConfig
impl UnwindSafe for PageConfig
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