pub struct UnitigColor(/* private fields */);Expand description
A packed positional color run.
The low 24 bits hold a unitig vertex offset and the upper 40 bits hold a
ColorCoordinate. This transparent 64-bit layout is written directly to
private intermediate streams.
Implementations§
Source§impl UnitigColor
impl UnitigColor
Sourcepub fn new(offset: u32, coord: ColorCoordinate) -> Self
pub fn new(offset: u32, coord: ColorCoordinate) -> Self
Packs a run starting at offset and referring to coord.
Sourcepub fn coordinate(self) -> u64
pub fn coordinate(self) -> u64
Returns the raw 40-bit color-repository coordinate.
Trait Implementations§
Source§impl Clone for UnitigColor
impl Clone for UnitigColor
Source§fn clone(&self) -> UnitigColor
fn clone(&self) -> UnitigColor
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 UnitigColor
Source§impl Debug for UnitigColor
impl Debug for UnitigColor
impl Eq for UnitigColor
Source§impl PartialEq for UnitigColor
impl PartialEq for UnitigColor
impl StructuralPartialEq for UnitigColor
Auto Trait Implementations§
impl Freeze for UnitigColor
impl RefUnwindSafe for UnitigColor
impl Send for UnitigColor
impl Sync for UnitigColor
impl Unpin for UnitigColor
impl UnsafeUnpin for UnitigColor
impl UnwindSafe for UnitigColor
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