pub struct SortState {
pub column: SortColumn,
pub ascending: bool,
}Expand description
Current sorting configuration: which column and direction.
Toggle behavior: pressing the same column flips direction; pressing a different column switches to it ascending.
Fields§
§column: SortColumnColumn to sort by.
ascending: booltrue = ascending (A→Z, 0→9), false = descending.
Implementations§
Trait Implementations§
impl Copy for SortState
Auto Trait Implementations§
impl Freeze for SortState
impl RefUnwindSafe for SortState
impl Send for SortState
impl Sync for SortState
impl Unpin for SortState
impl UnsafeUnpin for SortState
impl UnwindSafe for SortState
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