pub struct TableRow {
pub key: Option<Rc<dyn LocalKey>>,
pub decoration: Option<DecorationRef>,
pub children: Vec<WidgetRef>,
}Expand description
Fields§
§key: Option<Rc<dyn LocalKey>>An identifier for the row.
decoration: Option<DecorationRef>A decoration to paint behind this row.
Row decorations fill the horizontal and vertical extent of each row in the table, unlike decorations for individual cells, which might not fill either.
children: Vec<WidgetRef>The widgets that comprise the cells in this row.
Children may be wrapped in TableCell widgets to provide per-cell configuration to
the Table, but children are not required to be wrapped in TableCell widgets.
Implementations§
Source§impl TableRow
impl TableRow
Sourcepub fn decoration(self, decoration: impl Into<DecorationRef>) -> TableRow
pub fn decoration(self, decoration: impl Into<DecorationRef>) -> TableRow
Dart TableRow(decoration:).
Sourcepub fn children(self, children: impl IntoIterator<Item = WidgetRef>) -> TableRow
pub fn children(self, children: impl IntoIterator<Item = WidgetRef>) -> TableRow
Dart TableRow(children:).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TableRow
impl !Send for TableRow
impl !Sync for TableRow
impl !UnwindSafe for TableRow
impl Forget for TableRow
impl Freeze for TableRowwhere
*const RcInner<dyn LocalKey> is !null: Freeze,
PhantomData<RcInner<dyn LocalKey>>: Freeze,
*const RcInner<dyn Decoration> is !null: Freeze,
PhantomData<RcInner<dyn Decoration>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Rc<dyn Widget>>: Freeze,
impl Move for TableRow
impl Unpin for TableRow
impl UnsafeUnpin for TableRowwhere
*const RcInner<dyn LocalKey> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn LocalKey>>: UnsafeUnpin,
*const RcInner<dyn Decoration> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Decoration>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Rc<dyn Widget>>: UnsafeUnpin,
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