Struct wkhtmltopdf::Margin [] [src]

pub struct Margin {
    pub top: Size,
    pub bottom: Size,
    pub left: Size,
    pub right: Size,
}

PDF Margins

Fields

top: Size bottom: Size left: Size right: Size

Trait Implementations

impl Debug for Margin
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Size> for Margin
[src]

fn from(size: Size) -> Margin

Performs the conversion using size for all margins

impl From<(Size, Size)> for Margin
[src]

fn from(sizes: (Size, Size)) -> Margin

Performs the converstion to margins from an ordered tuple representing: (top & bottom, left & right)

impl From<(Size, Size, Size)> for Margin
[src]

fn from(sizes: (Size, Size, Size)) -> Margin

Performs the converstion to margins from an ordered tuple representing: (top, left & right, bottom)

impl From<(Size, Size, Size, Size)> for Margin
[src]

fn from(sizes: (Size, Size, Size, Size)) -> Margin

Performs the converstion to margins from an ordered tuple representing: (top, right, bottom, left)