pub struct QuantKey { /* private fields */ }Expand description
8-byte packed sort key: i32 quantized score + u32 ID prefix.
For sort-only operations where the full DeterministicScore is not needed. Score descending, lower ID prefix wins ties.
Implementations§
Trait Implementations§
Source§impl Ord for QuantKey
impl Ord for QuantKey
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 QuantKey
impl PartialOrd for QuantKey
impl Copy for QuantKey
impl Eq for QuantKey
impl StructuralPartialEq for QuantKey
Auto Trait Implementations§
impl Freeze for QuantKey
impl RefUnwindSafe for QuantKey
impl Send for QuantKey
impl Sync for QuantKey
impl Unpin for QuantKey
impl UnsafeUnpin for QuantKey
impl UnwindSafe for QuantKey
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