pub struct SketchArrayWriter { /* private fields */ }Expand description
Write to an .skd or .skq file This writer is not parallel safe, serial only!
Implementations§
Source§impl SketchArrayWriter
impl SketchArrayWriter
Sourcepub fn new(
filename: &str,
bin_stride: usize,
kmer_stride: usize,
sample_stride: usize,
) -> Self
pub fn new( filename: &str, bin_stride: usize, kmer_stride: usize, sample_stride: usize, ) -> Self
Open a new sketch file for writing
Sourcepub fn write_sketch<HashSize: ToBytes>(
&mut self,
usigs_flat: &[HashSize],
) -> usize
pub fn write_sketch<HashSize: ToBytes>( &mut self, usigs_flat: &[HashSize], ) -> usize
Write a single sketch to the currently open file, appending to the end (at the current write position)
§Returns:
- Index in file where sketch was written
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SketchArrayWriter
impl RefUnwindSafe for SketchArrayWriter
impl Send for SketchArrayWriter
impl Sync for SketchArrayWriter
impl Unpin for SketchArrayWriter
impl UnsafeUnpin for SketchArrayWriter
impl UnwindSafe for SketchArrayWriter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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