pub struct PageFragment {
pub page_index: usize,
pub bounds: LogicalRect,
pub items: Vec<DisplayListItem>,
pub source_node: Option<NodeId>,
pub is_continuation: bool,
pub continues_on_next: bool,
}Expand description
A fragment of content placed on a specific page
Fields§
§page_index: usizeWhich page this fragment belongs to (0-indexed)
bounds: LogicalRectBounds of this fragment on the page (in page coordinates)
items: Vec<DisplayListItem>Display list items for this fragment
source_node: Option<NodeId>Node ID that this fragment belongs to
is_continuation: boolWhether this is a continuation from previous page
continues_on_next: boolWhether this continues on the next page
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageFragment
impl !RefUnwindSafe for PageFragment
impl Send for PageFragment
impl Sync for PageFragment
impl Unpin for PageFragment
impl !UnwindSafe for PageFragment
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more