pub struct Marks {
pub strings: Vec<(String, String)>,
pub page_number: Option<u32>,
pub targets: Vec<NodeId>,
}Expand description
What a fragment tells the page it lands on: the running strings its element set, and the folio its page restarts at.
Both are captured from the content flow, so both are answers only pagination has: which page a heading fell on is not known until it falls there.
Fields§
§strings: Vec<(String, String)>Named strings, resolved from the element’s own text, in the order the cascade gave them.
page_number: Option<u32>The folio of the page this fragment lands on.
targets: Vec<NodeId>The nodes a link can reach that open on this fragment. The page it lands on is the page a reference to one of them prints.
Trait Implementations§
impl StructuralPartialEq for Marks
Auto Trait Implementations§
impl Freeze for Marks
impl RefUnwindSafe for Marks
impl Send for Marks
impl Sync for Marks
impl Unpin for Marks
impl UnsafeUnpin for Marks
impl UnwindSafe for Marks
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.