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.
Implementations§
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<'de> Deserialize<'de> for PageMarginBox
impl<'de> Deserialize<'de> for PageMarginBox
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>,
Source§impl<'any> IntoOwned<'any> for PageMarginBox
impl<'any> IntoOwned<'any> for PageMarginBox
Source§type Owned = PageMarginBox
type Owned = PageMarginBox
Self
with a new lifetime.Source§fn into_owned(self) -> Self
fn into_owned(self) -> Self
self
'static
.Source§impl JsonSchema for PageMarginBox
impl JsonSchema for PageMarginBox
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§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 for PageMarginBox
impl PartialEq for PageMarginBox
Source§impl Serialize for PageMarginBox
impl Serialize for PageMarginBox
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 moreSource§impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for PageMarginBox
impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for PageMarginBox
Source§const CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
visitor
only.impl Copy for PageMarginBox
impl StructuralPartialEq for PageMarginBox
Auto Trait Implementations§
impl Freeze for PageMarginBox
impl RefUnwindSafe for PageMarginBox
impl Send for PageMarginBox
impl Sync for PageMarginBox
impl Unpin for PageMarginBox
impl UnwindSafe for PageMarginBox
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more