pub struct DataTableHeader<'a> {
pub label: &'a str,
pub numeric: bool,
pub sort_key: Option<&'a str>,
pub sort_direction: Option<SortDirection>,
pub width: TableColumnWidth,
}Fields§
§label: &'a str§numeric: bool§sort_key: Option<&'a str>§sort_direction: Option<SortDirection>§width: TableColumnWidthImplementations§
Source§impl<'a> DataTableHeader<'a>
impl<'a> DataTableHeader<'a>
pub const fn new(label: &'a str) -> Self
pub const fn numeric(label: &'a str) -> Self
pub const fn sort(label: &'a str, sort_key: &'a str) -> Self
pub const fn sorted( label: &'a str, sort_key: &'a str, direction: SortDirection, ) -> Self
pub const fn sortable(self, sort_key: &'a str, direction: SortDirection) -> Self
pub const fn with_width(self, width: TableColumnWidth) -> Self
pub const fn action_column(self) -> Self
pub fn class_name(&self) -> &'static str
pub fn sort_arrow(&self) -> &'static str
Trait Implementations§
Source§impl<'a> Clone for DataTableHeader<'a>
impl<'a> Clone for DataTableHeader<'a>
Source§fn clone(&self) -> DataTableHeader<'a>
fn clone(&self) -> DataTableHeader<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DataTableHeader<'a>
impl<'a> Debug for DataTableHeader<'a>
Source§impl<'a> PartialEq for DataTableHeader<'a>
impl<'a> PartialEq for DataTableHeader<'a>
Source§fn eq(&self, other: &DataTableHeader<'a>) -> bool
fn eq(&self, other: &DataTableHeader<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for DataTableHeader<'a>
impl<'a> Eq for DataTableHeader<'a>
impl<'a> StructuralPartialEq for DataTableHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataTableHeader<'a>
impl<'a> RefUnwindSafe for DataTableHeader<'a>
impl<'a> Send for DataTableHeader<'a>
impl<'a> Sync for DataTableHeader<'a>
impl<'a> Unpin for DataTableHeader<'a>
impl<'a> UnsafeUnpin for DataTableHeader<'a>
impl<'a> UnwindSafe for DataTableHeader<'a>
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