pub enum MarginBox {
Show 16 variants
TopLeftCorner,
TopLeft,
TopCenter,
TopRight,
TopRightCorner,
LeftTop,
LeftMiddle,
LeftBottom,
RightTop,
RightMiddle,
RightBottom,
BottomLeftCorner,
BottomLeft,
BottomCenter,
BottomRight,
BottomRightCorner,
}Expand description
A page margin box, named as CSS names them.
Variants§
TopLeftCorner
@top-left-corner
TopLeft
@top-left
TopCenter
@top-center
TopRight
@top-right
TopRightCorner
@top-right-corner
LeftTop
@left-top
LeftMiddle
@left-middle
LeftBottom
@left-bottom
RightTop
@right-top
RightMiddle
@right-middle
RightBottom
@right-bottom
BottomLeftCorner
@bottom-left-corner
BottomLeft
@bottom-left
BottomCenter
@bottom-center
BottomRight
@bottom-right
BottomRightCorner
@bottom-right-corner
Implementations§
Trait Implementations§
impl Copy for MarginBox
impl Eq for MarginBox
Source§impl Ord for MarginBox
impl Ord for MarginBox
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MarginBox
impl PartialOrd for MarginBox
impl StructuralPartialEq for MarginBox
Auto Trait Implementations§
impl Freeze for MarginBox
impl RefUnwindSafe for MarginBox
impl Send for MarginBox
impl Sync for MarginBox
impl Unpin for MarginBox
impl UnsafeUnpin for MarginBox
impl UnwindSafe for MarginBox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.