pub struct TableRow {
pub height: f32,
pub cells: Vec<TableCell>,
}Expand description
A table row; its height grows to its tallest cell.
Fields§
§height: f32Height before growing.
cells: Vec<TableCell>The cells, left to right.
Implementations§
Source§impl TableRow
impl TableRow
Sourcepub fn field(self, width: f32, expression: &str, format: Option<&str>) -> Self
pub fn field(self, width: f32, expression: &str, format: Option<&str>) -> Self
Adds a cell showing an expression, with an optional format.
Sourcepub fn cell_style(self, style: Style) -> Self
pub fn cell_style(self, style: Style) -> Self
Styles the last cell added.
Sourcepub fn style_name(self, name: &str) -> Self
pub fn style_name(self, name: &str) -> Self
Uses a named style for every cell of the row.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableRow
impl<'de> Deserialize<'de> for TableRow
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 TableRow
Auto Trait Implementations§
impl Freeze for TableRow
impl RefUnwindSafe for TableRow
impl Send for TableRow
impl Sync for TableRow
impl Unpin for TableRow
impl UnsafeUnpin for TableRow
impl UnwindSafe for TableRow
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