pub struct TableStyle {
pub head: TextStyle,
pub body: TextStyle,
pub head_align: TextAlign,
pub border: TableBorder,
pub cell_padding: EdgeInsets,
pub stripe: Option<BoxDecoration>,
pub column_width: TableColumnWidthRef,
pub vertical_alignment: TableCellVerticalAlignment,
}Expand description
How a table looks.
Fields§
§head: TextStyle§body: TextStyle§head_align: TextAlignThe alignment of a head cell whose column states none; a body cell’s is the start.
border: TableBorder§cell_padding: EdgeInsets§stripe: Option<BoxDecoration>Painted behind every other body row, from the second.
column_width: TableColumnWidthRefA column width that sizes to its content lets the table scroll sideways.
vertical_alignment: TableCellVerticalAlignmentTrait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
Source§impl Debug for TableStyle
impl Debug for TableStyle
Auto Trait Implementations§
impl !RefUnwindSafe for TableStyle
impl !Send for TableStyle
impl !Sync for TableStyle
impl !UnwindSafe for TableStyle
impl Forget for TableStyle
impl Freeze for TableStylewhere
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
*const RcInner<dyn BoxBorder> is !null: Freeze,
PhantomData<RcInner<dyn BoxBorder>>: Freeze,
PhantomData<BoxShadow>: Freeze,
*const RcInner<dyn Gradient> is !null: Freeze,
PhantomData<RcInner<dyn Gradient>>: Freeze,
*const RcInner<dyn TableColumnWidth> is !null: Freeze,
PhantomData<RcInner<dyn TableColumnWidth>>: Freeze,
impl Move for TableStyle
impl Unpin for TableStyle
impl UnsafeUnpin for TableStylewhere
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
*const RcInner<dyn BoxBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxBorder>>: UnsafeUnpin,
PhantomData<BoxShadow>: UnsafeUnpin,
*const RcInner<dyn Gradient> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Gradient>>: UnsafeUnpin,
*const RcInner<dyn TableColumnWidth> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn TableColumnWidth>>: 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