Skip to main content

TableProps

Struct TableProps 

Source
pub struct TableProps<Message> {
Show 15 fields pub block: Option<BlockFrame>, pub header: Option<Row>, pub footer: Option<Row>, pub rows: Vec<Row>, pub widths: Vec<Constraint>, pub column_spacing: u16, pub flex: Flex, pub alignments: Vec<TableAlignment>, pub state: TableState, pub highlight_symbol: Option<Text>, pub row_highlight_style: Style, pub column_highlight_style: Style, pub cell_highlight_style: Style, pub highlight_spacing: HighlightSpacing, pub on_select: Option<SelectHandler<Message>>,
}

Fields§

§block: Option<BlockFrame>§header: Option<Row>§footer: Option<Row>§rows: Vec<Row>§widths: Vec<Constraint>§column_spacing: u16§flex: Flex§alignments: Vec<TableAlignment>§state: TableState§highlight_symbol: Option<Text>§row_highlight_style: Style§column_highlight_style: Style§cell_highlight_style: Style§highlight_spacing: HighlightSpacing§on_select: Option<SelectHandler<Message>>

Trait Implementations§

Source§

impl<Message> Debug for TableProps<Message>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Message> Freeze for TableProps<Message>

§

impl<Message> !RefUnwindSafe for TableProps<Message>

§

impl<Message> !Send for TableProps<Message>

§

impl<Message> !Sync for TableProps<Message>

§

impl<Message> Unpin for TableProps<Message>

§

impl<Message> UnsafeUnpin for TableProps<Message>

§

impl<Message> !UnwindSafe for TableProps<Message>

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.