pub struct Table {
pub cols: Vec<f64>,
pub rows: Vec<Row>,
pub style: String,
pub first_row: bool,
pub first_col: bool,
pub last_row: bool,
pub last_col: bool,
pub band_row: bool,
pub band_col: bool,
pub background: Option<Fill>,
}Fields§
§cols: Vec<f64>Column widths in points.
rows: Vec<Row>§style: StringTable style id (our built-in style names or a PPTX style GUID).
first_row: bool§first_col: bool§last_row: bool§last_col: bool§band_row: bool§band_col: bool§background: Option<Fill>a:tblPr fill: a fill behind the whole table (over the style’s own background).
Implementations§
Source§impl Table
impl Table
pub fn new(rows: usize, cols: usize, width: f64, row_height: f64) -> Self
pub fn n_rows(&self) -> usize
pub fn n_cols(&self) -> usize
pub fn cell(&self, r: usize, c: usize) -> Option<&Cell>
pub fn cell_mut(&mut self, r: usize, c: usize) -> Option<&mut Cell>
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn insert_row(&mut self, at: usize)
pub fn insert_col(&mut self, at: usize)
pub fn delete_row(&mut self, at: usize) -> bool
pub fn delete_col(&mut self, at: usize) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Table
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