#[non_exhaustive]pub struct TableColumn<'a> {
pub content: Vec<Block<'a>>,
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<'a>>§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<'a> Clone for TableColumn<'a>
impl<'a> Clone for TableColumn<'a>
Source§fn clone(&self) -> TableColumn<'a>
fn clone(&self) -> TableColumn<'a>
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<'a> Debug for TableColumn<'a>
impl<'a> Debug for TableColumn<'a>
Source§impl<'a> PartialEq for TableColumn<'a>
impl<'a> PartialEq for TableColumn<'a>
Source§impl<'a> Serialize for TableColumn<'a>
impl<'a> Serialize for TableColumn<'a>
impl<'a> StructuralPartialEq for TableColumn<'a>
Auto Trait Implementations§
impl<'a> Freeze for TableColumn<'a>
impl<'a> RefUnwindSafe for TableColumn<'a>
impl<'a> Send for TableColumn<'a>
impl<'a> Sync for TableColumn<'a>
impl<'a> Unpin for TableColumn<'a>
impl<'a> UnsafeUnpin for TableColumn<'a>
impl<'a> UnwindSafe for TableColumn<'a>
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