pub struct MarginBoxStyle {
pub which: MarginBox,
pub content: Content,
pub style: ComputedStyle,
}Expand description
One page margin box: what it paints and the style it paints with.
Fields§
§which: MarginBoxWhich of the sixteen boxes.
content: ContentWhat it paints.
style: ComputedStyleThe box’s own text style, inherited from the book’s root the way a block’s would be.
Trait Implementations§
Source§impl Clone for MarginBoxStyle
impl Clone for MarginBoxStyle
Source§fn clone(&self) -> MarginBoxStyle
fn clone(&self) -> MarginBoxStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarginBoxStyle
impl Debug for MarginBoxStyle
Source§impl PartialEq for MarginBoxStyle
impl PartialEq for MarginBoxStyle
Source§impl Serialize for MarginBoxStyle
impl Serialize for MarginBoxStyle
impl StructuralPartialEq for MarginBoxStyle
Auto Trait Implementations§
impl Freeze for MarginBoxStyle
impl RefUnwindSafe for MarginBoxStyle
impl Send for MarginBoxStyle
impl Sync for MarginBoxStyle
impl Unpin for MarginBoxStyle
impl UnsafeUnpin for MarginBoxStyle
impl UnwindSafe for MarginBoxStyle
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<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.