pub struct Table {
pub header: Option<Vec<Cell>>,
pub rows: Vec<Vec<Cell>>,
pub cols: Vec<ColSpec>,
pub style: TableStyle,
}Expand description
表格。cols 给各列对齐与可选限宽(短于列数时,缺的列按默认:左对齐 + 自适应)。
Fields§
§header: Option<Vec<Cell>>表头行;None = 无表头。
rows: Vec<Vec<Cell>>数据行。
cols: Vec<ColSpec>各列规格(对齐 / 限宽)。
style: TableStyle紧凑度与网格样式。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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