pub struct SelectedRecord<'a, R, S = RawAsciiCodec, Q = RawQualityCodec, N = RawNameCodec, K = NoRecordKey, F = ReadAllFields> { /* private fields */ }Expand description
Borrowed current-record view returned by a selected reader.
The methods available on this view are determined by the selected field set used to build the reader. If a field was not selected, no accessor for that field is available on the type.
Implementations§
Source§impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
Source§impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
Source§impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>
Source§impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>where
R: Read,
S: SequenceCodec,
Q: QualityCodec,
N: NameCodec,
K: RecordKey,
F: SelectionExpr + HasKey,
impl<R, S, Q, N, K, F> SelectedRecord<'_, R, S, Q, N, K, F>where
R: Read,
S: SequenceCodec,
Q: QualityCodec,
N: NameCodec,
K: RecordKey,
F: SelectionExpr + HasKey,
Sourcepub fn record_key(&self) -> Result<K, DryIceError>
pub fn record_key(&self) -> Result<K, DryIceError>
Decode the selected record key.
§Errors
Returns an error if the current block does not contain keys of type K
or if the key bytes cannot be decoded into K.
Auto Trait Implementations§
impl<'a, R, S, Q, N, K, F> Freeze for SelectedRecord<'a, R, S, Q, N, K, F>
impl<'a, R, S, Q, N, K, F> RefUnwindSafe for SelectedRecord<'a, R, S, Q, N, K, F>where
F: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
Q: RefUnwindSafe,
N: RefUnwindSafe,
K: RefUnwindSafe,
impl<'a, R, S, Q, N, K, F> Send for SelectedRecord<'a, R, S, Q, N, K, F>
impl<'a, R, S, Q, N, K, F> Sync for SelectedRecord<'a, R, S, Q, N, K, F>
impl<'a, R, S, Q, N, K, F> Unpin for SelectedRecord<'a, R, S, Q, N, K, F>where
F: Unpin,
impl<'a, R, S, Q, N, K, F> UnsafeUnpin for SelectedRecord<'a, R, S, Q, N, K, F>
impl<'a, R, S, Q, N, K, F> UnwindSafe for SelectedRecord<'a, R, S, Q, N, K, F>where
F: UnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
Q: RefUnwindSafe,
N: RefUnwindSafe,
K: RefUnwindSafe,
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