pub struct TableBlock {
pub header_row: usize,
pub delimiter_row: usize,
pub end_row: usize,
pub col_count: usize,
pub aligns: Vec<TableAlignment>,
}Expand description
A contiguous GFM pipe-table block: header + delimiter + 0..N body rows.
Fields§
§header_row: usizeBuffer row of the header line.
delimiter_row: usizeBuffer row of the delimiter line.
end_row: usizeLast body row (inclusive); equals delimiter_row when bodiless.
col_count: usizeNumber of columns (header and delimiter agree; body rows may vary).
aligns: Vec<TableAlignment>Per-column alignment from the delimiter row.
Implementations§
Trait Implementations§
Source§impl Clone for TableBlock
impl Clone for TableBlock
Source§fn clone(&self) -> TableBlock
fn clone(&self) -> TableBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TableBlock
impl Debug for TableBlock
impl Eq for TableBlock
Source§impl PartialEq for TableBlock
impl PartialEq for TableBlock
Source§fn eq(&self, other: &TableBlock) -> bool
fn eq(&self, other: &TableBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableBlock
Auto Trait Implementations§
impl Freeze for TableBlock
impl RefUnwindSafe for TableBlock
impl Send for TableBlock
impl Sync for TableBlock
impl Unpin for TableBlock
impl UnsafeUnpin for TableBlock
impl UnwindSafe for TableBlock
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