pub struct PageKey<T> {
pub value: T,
pub id: Uuid,
}Expand description
One keyset position: the sort value plus the row ID that breaks ties.
T is the type of the ordered column, for example a timestamp or a name.
Fields§
§value: TThe value of the ordered column for the last row of the page.
id: UuidThe ID of that row, used as a stable tie-breaker.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for PageKey<T>
impl<T: PartialEq> StructuralPartialEq for PageKey<T>
Auto Trait Implementations§
impl<T> Freeze for PageKey<T>where
T: Freeze,
impl<T> RefUnwindSafe for PageKey<T>where
T: RefUnwindSafe,
impl<T> Send for PageKey<T>where
T: Send,
impl<T> Sync for PageKey<T>where
T: Sync,
impl<T> Unpin for PageKey<T>where
T: Unpin,
impl<T> UnsafeUnpin for PageKey<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PageKey<T>where
T: UnwindSafe,
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§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.