pub struct SelectedDryIceReader<R, S = RawAsciiCodec, Q = RawQualityCodec, N = RawNameCodec, K = NoRecordKey, F = ReadAllFields> { /* private fields */ }Expand description
Reader type returned when a field selection is specified on the builder.
This reader still advances through whole records in order, but it only
prepares the fields implied by the selected field set. The selected field
methods then live on SelectedRecord rather than on the reader itself.
Implementations§
Source§impl<R, S, Q, N, K, F> SelectedDryIceReader<R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> SelectedDryIceReader<R, S, Q, N, K, F>
Sourcepub fn next_record(
&mut self,
) -> Result<Option<SelectedRecord<'_, R, S, Q, N, K, F>>, DryIceError>
pub fn next_record( &mut self, ) -> Result<Option<SelectedRecord<'_, R, S, Q, N, K, F>>, DryIceError>
Advance to the next selected record in the file.
§Errors
Returns an error if the next block header or payload cannot be read or decoded, or if the on-disk codec tags do not match the reader’s configured codecs.
Auto Trait Implementations§
impl<R, S, Q, N, K, F> Freeze for SelectedDryIceReader<R, S, Q, N, K, F>where
R: Freeze,
impl<R, S, Q, N, K, F> RefUnwindSafe for SelectedDryIceReader<R, S, Q, N, K, F>where
R: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
Q: RefUnwindSafe,
N: RefUnwindSafe,
K: RefUnwindSafe,
impl<R, S, Q, N, K, F> Send for SelectedDryIceReader<R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> Sync for SelectedDryIceReader<R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> Unpin for SelectedDryIceReader<R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> UnsafeUnpin for SelectedDryIceReader<R, S, Q, N, K, F>where
R: UnsafeUnpin,
impl<R, S, Q, N, K, F> UnwindSafe for SelectedDryIceReader<R, S, Q, N, K, F>
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