pub enum TableCellKind {
Text,
Muted,
Badge(BadgeTone),
Progress(f32),
}Expand description
Visual representation of a table cell.
§Examples
use ailloli_ui_widgets::controls::{BadgeTone, TableCellKind};
let kinds = [TableCellKind::Text, TableCellKind::Muted,
TableCellKind::Badge(BadgeTone::Success), TableCellKind::Progress(0.5)];
assert_eq!(kinds.len(), 4);Variants§
Text
Primary text.
Muted
Muted text.
Badge(BadgeTone)
Pill badge with the supplied semantic tone.
Progress(f32)
Progress track whose fill is clamped to 0.0..=1.0 when painted.
Trait Implementations§
Source§impl Clone for TableCellKind
impl Clone for TableCellKind
Source§fn clone(&self) -> TableCellKind
fn clone(&self) -> TableCellKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableCellKind
impl Debug for TableCellKind
Source§impl PartialEq for TableCellKind
impl PartialEq for TableCellKind
impl StructuralPartialEq for TableCellKind
Auto Trait Implementations§
impl Freeze for TableCellKind
impl RefUnwindSafe for TableCellKind
impl Send for TableCellKind
impl Sync for TableCellKind
impl Unpin for TableCellKind
impl UnwindSafe for TableCellKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.