Skip to main content

TableRow

Struct TableRow 

Source
pub struct TableRow {
    pub key: Option<Rc<dyn LocalKey>>,
    pub decoration: Option<DecorationRef>,
    pub children: Vec<WidgetRef>,
}
Expand description

A horizontal group of cells in a Table.

Every row in a table must have the same number of children.

The alignment of individual cells in a row can be controlled using a TableCell.

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

Source

pub fn new() -> TableRow

Creates a row in a Table; Dart’s named arguments are the setters.

Source

pub fn key(self, key: Rc<dyn LocalKey>) -> TableRow

Dart TableRow(key:).

Source

pub fn decoration(self, decoration: impl Into<DecorationRef>) -> TableRow

Dart TableRow(decoration:).

Source

pub fn children(self, children: impl IntoIterator<Item = WidgetRef>) -> TableRow

Dart TableRow(children:).

Trait Implementations§

Source§

impl Debug for TableRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TableRow

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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 TableRow
where *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
where Rc<dyn LocalKey>: Unpin, Rc<dyn Decoration>: Unpin, *const u8 is !null: Unpin, Rc<dyn Widget>: Unpin,

§

impl UnsafeUnpin for TableRow
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>