pub struct Page { /* private fields */ }Expand description
One page.
Implementations§
Source§impl Page
impl Page
Sourcepub fn painted(&self) -> Vec<Painted<'_>>
pub fn painted(&self) -> Vec<Painted<'_>>
The items that output paints, in painting order: each group’s items take the group’s
place, between the start and the end of its clip. A group whose clip has no area shows
nothing, so it gives nothing. An output draws them through Page::replay; callers
that inspect painted items directly read them here.
Source§impl Page
impl Page
Sourcepub const fn new(
width: Length,
height: Length,
orientation: Orientation,
items: Vec<Item>,
) -> Page
pub const fn new( width: Length, height: Length, orientation: Orientation, items: Vec<Item>, ) -> Page
A page width by height, in a section of orientation, that paints items in order:
a later item paints over an earlier one. For the format crates, which build pages; it
carries no promise.
Sourcepub const fn orientation(&self) -> Orientation
pub const fn orientation(&self) -> Orientation
The orientation that the page’s section sets.
Sourcepub const fn items(&self) -> &[Item]
pub const fn items(&self) -> &[Item]
The items in painting order: a later item paints over an earlier one.
Sourcepub fn map_items(self, change: impl FnOnce(Vec<Item>) -> Vec<Item>) -> Page
pub fn map_items(self, change: impl FnOnce(Vec<Item>) -> Vec<Item>) -> Page
The same page with the items that change makes of its items, such as the items of a
header put behind them. Every other property of the page stays, so a change of the
items names none of them. For the format crates, which build pages; it carries no
promise.
Trait Implementations§
impl Eq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl !RefUnwindSafe for Page
impl !UnwindSafe for Page
impl Forget for Page
impl Freeze for Page
impl Move for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.