#[repr(transparent)]pub struct PackedCoordKey(pub u64);Expand description
Packed sort key for coordinate ordering.
Format: (tid << 34) | ((pos+1) << 1) | reverse
This allows single u64 comparison for most records. The +1 on pos ensures pos=0 doesn’t collide with unmapped (which uses MAX).
Tuple Fields§
§0: u64Implementations§
Source§impl PackedCoordKey
impl PackedCoordKey
Trait Implementations§
Source§impl Clone for PackedCoordKey
impl Clone for PackedCoordKey
Source§fn clone(&self) -> PackedCoordKey
fn clone(&self) -> PackedCoordKey
Returns a duplicate 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 PackedCoordKey
impl Debug for PackedCoordKey
Source§impl Ord for PackedCoordKey
impl Ord for PackedCoordKey
Source§fn cmp(&self, other: &PackedCoordKey) -> Ordering
fn cmp(&self, other: &PackedCoordKey) -> Ordering
1.21.0 · 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 PartialEq for PackedCoordKey
impl PartialEq for PackedCoordKey
Source§impl PartialOrd for PackedCoordKey
impl PartialOrd for PackedCoordKey
impl Copy for PackedCoordKey
impl Eq for PackedCoordKey
impl StructuralPartialEq for PackedCoordKey
Auto Trait Implementations§
impl Freeze for PackedCoordKey
impl RefUnwindSafe for PackedCoordKey
impl Send for PackedCoordKey
impl Sync for PackedCoordKey
impl Unpin for PackedCoordKey
impl UnsafeUnpin for PackedCoordKey
impl UnwindSafe for PackedCoordKey
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> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more