TableViewItem

Trait TableViewItem 

Source
pub trait TableViewItem<H>: Clone + Sized
where H: Eq + Hash + Copy + Clone + Send + Sync + 'static,
{ // Required methods fn to_column(&self, column: H) -> String; fn cmp(&self, other: &Self, column: H) -> Ordering where Self: Sized; }
Expand description

A trait for displaying and sorting items inside a TableView.

Required Methods§

Source

fn to_column(&self, column: H) -> String

Method returning a string representation of the item for the specified column from type H.

Source

fn cmp(&self, other: &Self, column: H) -> Ordering
where Self: Sized,

Method comparing two items via their specified column from type H.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§