#[non_exhaustive]#[repr(C)]pub struct TableColumn {
pub title: SharedString,
pub min_width: Coord,
pub horizontal_stretch: f32,
pub sort_order: SortOrder,
pub width: Coord,
}
Expand description
This is used to define the column and the column header of a TableView
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.title: SharedString
The title of the column header
min_width: Coord
The minimum column width (logical length)
horizontal_stretch: f32
The horizontal column stretch
sort_order: SortOrder
Sorts the column
width: Coord
the actual width of the column (logical length)
Trait Implementations§
Source§impl Clone for TableColumn
impl Clone for TableColumn
Source§fn clone(&self) -> TableColumn
fn clone(&self) -> TableColumn
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 TableColumn
impl Debug for TableColumn
Source§impl Default for TableColumn
impl Default for TableColumn
Source§fn default() -> TableColumn
fn default() -> TableColumn
Returns the “default value” for a type. Read more
Source§impl PartialEq for TableColumn
impl PartialEq for TableColumn
impl StructuralPartialEq for TableColumn
Auto Trait Implementations§
impl Freeze for TableColumn
impl RefUnwindSafe for TableColumn
impl Send for TableColumn
impl !Sync for TableColumn
impl Unpin for TableColumn
impl UnwindSafe for TableColumn
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