pub struct ColorCoordinate(/* private fields */);Expand description
Compact location of a deduplicated source set in the color repository.
Published coordinates use 8 worker bits and 32 worker-local index bits. The high bit is reserved for concurrent insertion state.
Implementations§
Source§impl ColorCoordinate
impl ColorCoordinate
pub fn in_process(worker: u64) -> Self
pub fn discovered(worker: u64, index: u64) -> Self
pub fn from_u40(value: u64) -> Self
pub fn is_in_process(self) -> bool
pub fn processing_worker(self) -> u64
pub fn as_u40(self) -> u64
pub fn worker(self) -> usize
pub fn index(self) -> u32
Trait Implementations§
Source§impl Clone for ColorCoordinate
impl Clone for ColorCoordinate
Source§fn clone(&self) -> ColorCoordinate
fn clone(&self) -> ColorCoordinate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorCoordinate
Source§impl Debug for ColorCoordinate
impl Debug for ColorCoordinate
Source§impl Default for ColorCoordinate
impl Default for ColorCoordinate
Source§fn default() -> ColorCoordinate
fn default() -> ColorCoordinate
Returns the “default value” for a type. Read more
impl Eq for ColorCoordinate
Source§impl PartialEq for ColorCoordinate
impl PartialEq for ColorCoordinate
impl StructuralPartialEq for ColorCoordinate
Auto Trait Implementations§
impl Freeze for ColorCoordinate
impl RefUnwindSafe for ColorCoordinate
impl Send for ColorCoordinate
impl Sync for ColorCoordinate
impl Unpin for ColorCoordinate
impl UnsafeUnpin for ColorCoordinate
impl UnwindSafe for ColorCoordinate
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.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