pub struct Row { /* private fields */ }Expand description
Implementations§
Source§impl Row
impl Row
Sourcepub fn new<T>(cells: T) -> Self
pub fn new<T>(cells: T) -> Self
Creates a new Row from the given cells.
You can provide any type that can be converted into an iterator of any
type, that can be converted into Element.
§Example
let row = Row::new(["First", "Second", "Third"]);
let row = Row::new(vec![
"First".fg(Color::Red),
"Second".fg(Color::Green),
"Third".fg(Color::Blue),
]);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 !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