#[repr(C, packed(2))]pub struct MinimizerTupleExternal {
pub minimizer: u64,
pub pos_in_seq: u64,
pub pos_in_kmer: u8,
pub num_kmers_in_super_kmer: u8,
}Expand description
Packed minimizer tuple for disk I/O (matches C++ #pragma pack(push, 2))
Layout: minimizer (8) + pos_in_seq (8) + pos_in_kmer (1) + num_kmers_in_super_kmer (1) = 18 bytes
Fields§
§minimizer: u64The minimizer hash value
pos_in_seq: u64Position in the sequence
pos_in_kmer: u8Position of the minimizer within the k-mer
num_kmers_in_super_kmer: u8Number of k-mers in the super-k-mer
Implementations§
Source§impl MinimizerTupleExternal
impl MinimizerTupleExternal
Sourcepub fn from_internal(t: &MinimizerTuple) -> Self
pub fn from_internal(t: &MinimizerTuple) -> Self
Convert from internal MinimizerTuple
Sourcepub fn to_internal(&self) -> MinimizerTuple
pub fn to_internal(&self) -> MinimizerTuple
Convert to internal MinimizerTuple
Sourcepub unsafe fn from_bytes(bytes: *const u8) -> Self
pub unsafe fn from_bytes(bytes: *const u8) -> Self
Read from bytes (unsafe, assumes correct alignment)
§Safety
Caller must ensure bytes points to a valid MinimizerTupleExternal
Trait Implementations§
Source§impl Clone for MinimizerTupleExternal
impl Clone for MinimizerTupleExternal
Source§fn clone(&self) -> MinimizerTupleExternal
fn clone(&self) -> MinimizerTupleExternal
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 MinimizerTupleExternal
impl Debug for MinimizerTupleExternal
Source§impl Ord for MinimizerTupleExternal
impl Ord for MinimizerTupleExternal
Source§impl PartialEq for MinimizerTupleExternal
impl PartialEq for MinimizerTupleExternal
Source§impl PartialOrd for MinimizerTupleExternal
impl PartialOrd for MinimizerTupleExternal
impl Copy for MinimizerTupleExternal
impl Eq for MinimizerTupleExternal
impl StructuralPartialEq for MinimizerTupleExternal
Auto Trait Implementations§
impl Freeze for MinimizerTupleExternal
impl RefUnwindSafe for MinimizerTupleExternal
impl Send for MinimizerTupleExternal
impl Sync for MinimizerTupleExternal
impl Unpin for MinimizerTupleExternal
impl UnsafeUnpin for MinimizerTupleExternal
impl UnwindSafe for MinimizerTupleExternal
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
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<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.