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>,
}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>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