pub struct TextTableCell { /* private fields */ }Expand description
A read-only handle to a single cell within a table.
Implementations§
Source§impl TextTableCell
impl TextTableCell
Sourcepub fn column_span(&self) -> usize
pub fn column_span(&self) -> usize
Column span. O(1).
Sourcepub fn format(&self) -> CellFormat
pub fn format(&self) -> CellFormat
Cell-level formatting. O(1).
Sourcepub fn blocks(&self) -> Vec<TextBlock>
pub fn blocks(&self) -> Vec<TextBlock>
Blocks within this cell’s frame. Returns empty Vec if cell_frame is None.
Sourcepub fn snapshot_blocks(&self) -> Vec<BlockSnapshot>
pub fn snapshot_blocks(&self) -> Vec<BlockSnapshot>
Snapshot all cell blocks in one lock. Returns empty Vec if cell_frame is None.
Trait Implementations§
Source§impl Clone for TextTableCell
impl Clone for TextTableCell
Source§fn clone(&self) -> TextTableCell
fn clone(&self) -> TextTableCell
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 moreAuto Trait Implementations§
impl Freeze for TextTableCell
impl !RefUnwindSafe for TextTableCell
impl Send for TextTableCell
impl Sync for TextTableCell
impl Unpin for TextTableCell
impl UnsafeUnpin for TextTableCell
impl !UnwindSafe for TextTableCell
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