Struct rckive_genpdf::Margins
source · pub struct Margins { /* private fields */ }
Expand description
The margins of an area, measured in millimeters.
Implementations§
source§impl Margins
impl Margins
sourcepub fn trbl(
top: impl Into<Mm>,
right: impl Into<Mm>,
bottom: impl Into<Mm>,
left: impl Into<Mm>
) -> Margins
pub fn trbl(
top: impl Into<Mm>,
right: impl Into<Mm>,
bottom: impl Into<Mm>,
left: impl Into<Mm>
) -> Margins
Creates a new Margins
instance from the given top, right, bottom and left margins.
Trait Implementations§
source§impl<T: Into<Mm>, R: Into<Mm>, B: Into<Mm>, L: Into<Mm>> From<(T, R, B, L)> for Margins
impl<T: Into<Mm>, R: Into<Mm>, B: Into<Mm>, L: Into<Mm>> From<(T, R, B, L)> for Margins
source§fn from(values: (T, R, B, L)) -> Margins
fn from(values: (T, R, B, L)) -> Margins
Converts to this type from the input type.
source§impl PartialOrd<Margins> for Margins
impl PartialOrd<Margins> for Margins
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more