pub struct PageStyle {
pub geometry: PageGeometry,
pub background: Background,
pub boxes: Vec<MarginBoxStyle>,
}Expand description
One resolved page master: the page box, and what its margin boxes paint.
Fields§
§geometry: PageGeometryTrim size and margins.
background: BackgroundWhat is painted behind the whole page box, margins included.
boxes: Vec<MarginBoxStyle>The margin boxes the page’s rules mentioned, in CSS order.
Implementations§
Source§impl PageStyle
impl PageStyle
Sourcepub fn margin_box(&self, which: MarginBox) -> Option<&MarginBoxStyle>
pub fn margin_box(&self, which: MarginBox) -> Option<&MarginBoxStyle>
The margin box which, when it paints anything.
Trait Implementations§
impl StructuralPartialEq for PageStyle
Auto Trait Implementations§
impl Freeze for PageStyle
impl RefUnwindSafe for PageStyle
impl Send for PageStyle
impl Sync for PageStyle
impl Unpin for PageStyle
impl UnsafeUnpin for PageStyle
impl UnwindSafe for PageStyle
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.