#[non_exhaustive]pub enum SortDir {
Asc,
Desc,
}Expand description
Sort direction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Asc
Ascending order (smallest to largest, A to Z).
Desc
Descending order (largest to smallest, Z to A).
Trait Implementations§
impl Copy for SortDir
impl Eq for SortDir
impl StructuralPartialEq for SortDir
Auto Trait Implementations§
impl Freeze for SortDir
impl RefUnwindSafe for SortDir
impl Send for SortDir
impl Sync for SortDir
impl Unpin for SortDir
impl UnwindSafe for SortDir
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