Enum dittolive_ditto::store::SortDirection
source · #[non_exhaustive]pub enum SortDirection {
Ascending,
Descending,
}
Expand description
Specify the order of returned Documents in a query.
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.
Trait Implementations§
source§impl Clone for SortDirection
impl Clone for SortDirection
source§fn clone(&self) -> SortDirection
fn clone(&self) -> SortDirection
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 SortDirection
impl Debug for SortDirection
source§impl PartialEq for SortDirection
impl PartialEq for SortDirection
source§fn eq(&self, other: &SortDirection) -> bool
fn eq(&self, other: &SortDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SortDirection
impl Eq for SortDirection
impl StructuralEq for SortDirection
impl StructuralPartialEq for SortDirection
Auto Trait Implementations§
impl RefUnwindSafe for SortDirection
impl Send for SortDirection
impl Sync for SortDirection
impl Unpin for SortDirection
impl UnwindSafe for SortDirection
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more