pub struct Table {
pub rows: Vec<TableChild>,
pub grid: Vec<usize>,
pub has_numbering: bool,
pub property: TableProperty,
}
Fields
rows: Vec<TableChild>
grid: Vec<usize>
has_numbering: bool
property: TableProperty
Implementations
sourceimpl Table
impl Table
pub fn new(rows: Vec<TableRow>) -> Table
pub fn without_borders(rows: Vec<TableRow>) -> Table
pub fn add_row(self, row: TableRow) -> Table
pub fn set_grid(self, grid: Vec<usize>) -> Table
pub fn indent(self, v: i32) -> Table
pub fn align(self, v: TableAlignmentType) -> Table
pub fn style(self, s: impl Into<String>) -> Table
pub fn layout(self, t: TableLayoutType) -> Table
pub fn width(self, w: usize, t: WidthType) -> Table
pub fn margins(self, margins: TableCellMargins) -> Self
pub fn set_borders(self, borders: TableBorders) -> Self
pub fn set_border(self, border: TableBorder) -> Self
pub fn clear_border(self, position: TableBorderPosition) -> Self
pub fn clear_all_border(self) -> Self
Trait Implementations
sourceimpl ElementReader for Table
impl ElementReader for Table
fn read<R: Read>(
r: &mut EventReader<R>,
_: &[OwnedAttribute]
) -> Result<Self, ReaderError>
sourceimpl PartialEq<Table> for Table
impl PartialEq<Table> for Table
impl StructuralPartialEq for Table
Auto Trait Implementations
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more