pub struct Row { /* private fields */ }Expand description
A row in a table.
Implementations§
Source§impl Row
impl Row
Sourcepub fn new<'a>(cells: impl IntoIterator<Item = impl Into<Text<'a>>>) -> Self
pub fn new<'a>(cells: impl IntoIterator<Item = impl Into<Text<'a>>>) -> Self
Create a new row from an iterator of cell contents.
Sourcepub fn height(self, height: u16) -> Self
pub fn height(self, height: u16) -> Self
Set the row height in lines.
Values below 1 clamp to a single visible line so rows always consume vertical space deterministically.
Sourcepub fn bottom_margin(self, margin: u16) -> Self
pub fn bottom_margin(self, margin: u16) -> Self
Set the bottom margin after this row.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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