pub enum SortOrder {
Ascending,
Descending,
}Expand description
Specifies whether sorting (in an index or in an ORDER BY
clause) happens in ascending or descending order.
Variants§
Ascending
Sort values in increasing numeric or lexicographical order.
Descending
Sort values in decreasing numeric or lexicographical order.
Trait Implementations§
impl Copy for SortOrder
impl Eq for SortOrder
Source§impl Ord for SortOrder
impl Ord for SortOrder
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SortOrder
impl PartialOrd for SortOrder
impl StructuralPartialEq for SortOrder
Auto Trait Implementations§
impl Freeze for SortOrder
impl RefUnwindSafe for SortOrder
impl Send for SortOrder
impl Sync for SortOrder
impl Unpin for SortOrder
impl UnsafeUnpin for SortOrder
impl UnwindSafe for SortOrder
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