Skip to main content

TableCell

Trait TableCell 

Source
pub trait TableCell {
    // Required method
    fn draw(&self, window: &mut Window, cx: &mut App) -> AnyElement;
}
Expand description

A value that can be displayed in a table cell.

Built-in Chrono cells use localized formatting when Jiff can represent the value. Dates outside Jiff’s range and leap seconds use the original Chrono Display representation, preserving the value and its original offset.

Required Methods§

Source

fn draw(&self, window: &mut Window, cx: &mut App) -> AnyElement

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TableCell for &str

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for Date

Available on crate feature jiff only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for DateTime

Available on crate feature jiff only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for NaiveDate

Available on crate feature chrono only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for NaiveDateTime

Available on crate feature chrono only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for NaiveTime

Available on crate feature chrono only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for String

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for Time

Available on crate feature jiff only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for Timestamp

Available on crate feature jiff only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for Zoned

Available on crate feature jiff only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for bool

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for f32

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for f64

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for i8

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for i16

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for i32

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for i64

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for i128

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for isize

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for u8

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for u16

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for u32

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for u64

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for u128

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl TableCell for usize

Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Source§

impl<T: TableCell> TableCell for Option<T>

Source§

fn draw(&self, window: &mut Window, cx: &mut App) -> AnyElement

Source§

impl<T: TableCell> TableCell for Vec<T>

Source§

fn draw(&self, window: &mut Window, cx: &mut App) -> AnyElement

Source§

impl<Tz: TimeZone> TableCell for DateTime<Tz>
where Tz::Offset: Display,

Available on crate feature chrono only.
Source§

fn draw(&self, _window: &mut Window, _cx: &mut App) -> AnyElement

Implementors§

Source§

impl<T, F, S> TableCell for FormattedCell<T, F>
where F: Fn(&T) -> S, S: Display,

Source§

impl<T: Display> TableCell for DisplayCell<T>