pub struct PageStyle {
pub width_pt: f32,
pub height_pt: f32,
pub margin_pt: f32,
}Expand description
Page geometry resolved from #set page(...). width_pt/height_pt
describe the full media box; margin_pt is symmetric on all four
sides for MVP 1.5 (per-side margins are deferred).
Fields§
§width_pt: f32§height_pt: f32§margin_pt: f32Trait Implementations§
impl Copy for PageStyle
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<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.