pub struct Sort<'a> {
pub column: &'a str,
pub descending: bool,
}Expand description
An ordering on one declared column.
One column, because a second is a tiebreaker and the primary key is already that — and because every column a page is ordered by has to appear in the cursor, so the vocabulary that stays small is the one whose cursor stays readable.
Fields§
§column: &'a strThe declared column.
descending: boolWhether the largest value comes first.
Trait Implementations§
impl<'a> Copy for Sort<'a>
impl<'a> Eq for Sort<'a>
impl<'a> StructuralPartialEq for Sort<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sort<'a>
impl<'a> RefUnwindSafe for Sort<'a>
impl<'a> Send for Sort<'a>
impl<'a> Sync for Sort<'a>
impl<'a> Unpin for Sort<'a>
impl<'a> UnsafeUnpin for Sort<'a>
impl<'a> UnwindSafe for Sort<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.