Enum lightningcss::rules::page::PageMarginBox
source · pub enum PageMarginBox {
Show 16 variants
TopLeftCorner,
TopLeft,
TopCenter,
TopRight,
TopRightCorner,
LeftTop,
LeftMiddle,
LeftBottom,
RightTop,
RightMiddle,
RightBottom,
BottomLeftCorner,
BottomLeft,
BottomCenter,
BottomRight,
BottomRightCorner,
}
Expand description
Variants§
TopLeftCorner
A fixed-size box defined by the intersection of the top and left margins of the page box.
TopLeft
A variable-width box filling the top page margin between the top-left-corner and top-center page-margin boxes.
TopCenter
A variable-width box centered horizontally between the page’s left and right border edges and filling the page top margin between the top-left and top-right page-margin boxes.
TopRight
A variable-width box filling the top page margin between the top-center and top-right-corner page-margin boxes.
TopRightCorner
A fixed-size box defined by the intersection of the top and right margins of the page box.
LeftTop
A variable-height box filling the left page margin between the top-left-corner and left-middle page-margin boxes.
LeftMiddle
A variable-height box centered vertically between the page’s top and bottom border edges and filling the left page margin between the left-top and left-bottom page-margin boxes.
LeftBottom
A variable-height box filling the left page margin between the left-middle and bottom-left-corner page-margin boxes.
RightTop
A variable-height box filling the right page margin between the top-right-corner and right-middle page-margin boxes.
RightMiddle
A variable-height box centered vertically between the page’s top and bottom border edges and filling the right page margin between the right-top and right-bottom page-margin boxes.
RightBottom
A variable-height box filling the right page margin between the right-middle and bottom-right-corner page-margin boxes.
BottomLeftCorner
A fixed-size box defined by the intersection of the bottom and left margins of the page box.
BottomLeft
A variable-width box filling the bottom page margin between the bottom-left-corner and bottom-center page-margin boxes.
BottomCenter
A variable-width box centered horizontally between the page’s left and right border edges and filling the bottom page margin between the bottom-left and bottom-right page-margin boxes.
BottomRight
A variable-width box filling the bottom page margin between the bottom-center and bottom-right-corner page-margin boxes.
BottomRightCorner
A fixed-size box defined by the intersection of the bottom and right margins of the page box.
Trait Implementations§
source§impl Clone for PageMarginBox
impl Clone for PageMarginBox
source§fn clone(&self) -> PageMarginBox
fn clone(&self) -> PageMarginBox
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PageMarginBox
impl Debug for PageMarginBox
source§impl<'i> Parse<'i> for PageMarginBox
impl<'i> Parse<'i> for PageMarginBox
source§fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
source§fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
source§impl PartialEq<PageMarginBox> for PageMarginBox
impl PartialEq<PageMarginBox> for PageMarginBox
source§fn eq(&self, other: &PageMarginBox) -> bool
fn eq(&self, other: &PageMarginBox) -> bool
source§impl ToCss for PageMarginBox
impl ToCss for PageMarginBox
source§fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError>where
W: Write,
fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError>where
W: Write,
self
in CSS syntax, writing to dest
.source§fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
self
in CSS syntax and return a string. Read more