#[non_exhaustive]pub struct TableColumn {
pub content: Vec<Block>,
pub colspan: usize,
pub rowspan: usize,
pub halign: Option<HorizontalAlignment>,
pub valign: Option<VerticalAlignment>,
pub style: Option<ColumnStyle>,
}Expand description
A TableColumn represents a column/cell in a table row.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: Vec<Block>§colspan: usizeNumber of columns this cell spans (default 1).
Specified in AsciiDoc with n+| syntax (e.g., 2+| for colspan=2).
rowspan: usizeNumber of rows this cell spans (default 1).
Specified in AsciiDoc with .n+| syntax (e.g., .2+| for rowspan=2).
halign: Option<HorizontalAlignment>Cell-level horizontal alignment override.
Specified with <, ^, or > in cell specifier (e.g., ^| for center).
valign: Option<VerticalAlignment>Cell-level vertical alignment override.
Specified with .<, .^, or .> in cell specifier (e.g., .>| for bottom).
style: Option<ColumnStyle>Cell-level style override.
Specified with style letter after operator (e.g., s| for strong/bold).
Trait Implementations§
Source§impl Clone for TableColumn
impl Clone for TableColumn
Source§fn clone(&self) -> TableColumn
fn clone(&self) -> TableColumn
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 TableColumn
impl Debug for TableColumn
Source§impl PartialEq for TableColumn
impl PartialEq for TableColumn
Source§impl Serialize for TableColumn
impl Serialize for TableColumn
impl StructuralPartialEq for TableColumn
Auto Trait Implementations§
impl Freeze for TableColumn
impl RefUnwindSafe for TableColumn
impl Send for TableColumn
impl Sync for TableColumn
impl Unpin for TableColumn
impl UnwindSafe for TableColumn
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