pub struct PageMargin {
pub top: i32,
pub left: i32,
pub bottom: i32,
pub right: i32,
pub header: i32,
pub footer: i32,
pub gutter: i32,
}
Fields§
§top: i32
§left: i32
§bottom: i32
§right: i32
§header: i32
§gutter: i32
Implementations§
Source§impl PageMargin
impl PageMargin
pub fn new() -> PageMargin
pub fn top(self, v: i32) -> PageMargin
pub fn left(self, v: i32) -> PageMargin
pub fn bottom(self, v: i32) -> PageMargin
pub fn right(self, v: i32) -> PageMargin
pub fn header(self, v: i32) -> PageMargin
pub fn gutter(self, v: i32) -> PageMargin
Trait Implementations§
Source§impl Clone for PageMargin
impl Clone for PageMargin
Source§fn clone(&self) -> PageMargin
fn clone(&self) -> PageMargin
Returns a copy 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 PageMargin
impl Debug for PageMargin
Source§impl Default for PageMargin
impl Default for PageMargin
Source§fn default() -> PageMargin
fn default() -> PageMargin
Returns the “default value” for a type. Read more
Source§impl PartialEq for PageMargin
impl PartialEq for PageMargin
Source§impl Serialize for PageMargin
impl Serialize for PageMargin
impl StructuralPartialEq for PageMargin
Auto Trait Implementations§
impl Freeze for PageMargin
impl RefUnwindSafe for PageMargin
impl Send for PageMargin
impl Sync for PageMargin
impl Unpin for PageMargin
impl UnwindSafe for PageMargin
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