Skip to main content

SelectedDryIceReader

Struct SelectedDryIceReader 

Source
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>
where R: Read, S: SequenceCodec, Q: QualityCodec, N: NameCodec, F: SelectionPlan,

Source

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>

§

impl<R, S, Q, N, K, F> Send for SelectedDryIceReader<R, S, Q, N, K, F>
where R: Send, F: Send, S: Send, Q: Send, N: Send, K: Send,

§

impl<R, S, Q, N, K, F> Sync for SelectedDryIceReader<R, S, Q, N, K, F>
where R: Sync, F: Sync, S: Sync, Q: Sync, N: Sync, K: Sync,

§

impl<R, S, Q, N, K, F> Unpin for SelectedDryIceReader<R, S, Q, N, K, F>
where R: Unpin, F: Unpin, S: Unpin, Q: Unpin, N: Unpin, K: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V