pub struct BucketReader { /* private fields */ }Expand description
Streaming reader for one versioned weak-super-k-mer bucket.
Implementations§
Source§impl BucketReader
impl BucketReader
pub fn open(path: impl AsRef<Path>) -> Result<Self, BucketError>
pub fn header(&self) -> &BucketHeader
pub fn next_record(&mut self) -> Result<Option<BucketRecord>, BucketError>
pub fn next_record_into( &mut self, record: &mut BucketRecord, ) -> Result<bool, BucketError>
pub fn next_packed_record_into( &mut self, record: &mut BucketPackedRecord, ) -> Result<bool, BucketError>
pub fn try_for_each_packed_record<E, F>( &mut self, record: &mut BucketPackedRecord, f: F, ) -> Result<(), E>
pub fn records(self) -> BucketRecords ⓘ
Auto Trait Implementations§
impl Freeze for BucketReader
impl RefUnwindSafe for BucketReader
impl Send for BucketReader
impl Sync for BucketReader
impl Unpin for BucketReader
impl UnsafeUnpin for BucketReader
impl UnwindSafe for BucketReader
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> 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