pub struct TableCell {
pub glyphs: Vec<Glyph>,
pub start: usize,
pub end: usize,
pub align: Alignment,
}Expand description
One laid-out table cell: its rendered text, the source range that text
occupies (start/end are the caret anchors decoration points at), and the
column alignment its padding honours.
glyphs is the cell’s inline content unwrapped — the box-drawn rows wrap
it to a column width, but a frontend laying the grid out itself needs the
text before that decision was made.
Fields§
§glyphs: Vec<Glyph>§start: usize§end: usize§align: AlignmentTrait Implementations§
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnsafeUnpin for TableCell
impl UnwindSafe for TableCell
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