pub struct BlockSnapshot {
pub block_id: usize,
pub position: usize,
pub length: usize,
pub text: String,
pub fragments: Vec<FragmentContent>,
pub block_format: BlockFormat,
pub list_info: Option<ListInfo>,
pub parent_frame_id: Option<usize>,
pub table_cell: Option<TableCellContext>,
}Expand description
All layout-relevant data for one block, captured atomically.
Fields§
§block_id: usize§position: usize§length: usize§text: String§fragments: Vec<FragmentContent>§block_format: BlockFormat§list_info: Option<ListInfo>§parent_frame_id: Option<usize>Parent frame ID. Needed to know where this block lives in the frame tree (e.g. main frame vs. a sub-frame or table cell frame).
table_cell: Option<TableCellContext>If this block is inside a table cell, the cell coordinates. Needed so the typesetter can propagate height changes to the enclosing table row.
Trait Implementations§
Source§impl Clone for BlockSnapshot
impl Clone for BlockSnapshot
Source§fn clone(&self) -> BlockSnapshot
fn clone(&self) -> BlockSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockSnapshot
impl Debug for BlockSnapshot
Source§impl PartialEq for BlockSnapshot
impl PartialEq for BlockSnapshot
impl Eq for BlockSnapshot
impl StructuralPartialEq for BlockSnapshot
Auto Trait Implementations§
impl Freeze for BlockSnapshot
impl RefUnwindSafe for BlockSnapshot
impl Send for BlockSnapshot
impl Sync for BlockSnapshot
impl Unpin for BlockSnapshot
impl UnsafeUnpin for BlockSnapshot
impl UnwindSafe for BlockSnapshot
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