pub struct ScLongReadRecordContext {
pub bct: RadIntId,
pub umit: RadIntId,
}Fields§
§bct: RadIntId§umit: RadIntIdImplementations§
Source§impl ScLongReadRecordContext
impl ScLongReadRecordContext
Sourcepub fn from_bct_umit(bct: RadIntId, umit: RadIntId) -> Self
pub fn from_bct_umit(bct: RadIntId, umit: RadIntId) -> Self
Create a new AlevinFryRecordContext from the barcode and umi RadIntId types.
Sourcepub fn from_roles(rt: &TagSection) -> Result<Option<Self>>
pub fn from_roles(rt: &TagSection) -> Result<Option<Self>>
Build the context from the read tags’ declared roles (see
bct_umit_from_roles); Ok(None) when no barcode role is declared.
Trait Implementations§
Source§impl Clone for ScLongReadRecordContext
impl Clone for ScLongReadRecordContext
Source§impl Debug for ScLongReadRecordContext
impl Debug for ScLongReadRecordContext
Source§impl RecordContext for ScLongReadRecordContext
impl RecordContext for ScLongReadRecordContext
fn get_context_from_tag_section( _ft: &TagSection, rt: &TagSection, _at: &TagSection, ) -> Result<Self>
Source§fn get_context_prefer_roles(
ft: &TagSection,
rt: &TagSection,
at: &TagSection,
) -> Result<Self>
fn get_context_prefer_roles( ft: &TagSection, rt: &TagSection, at: &TagSection, ) -> Result<Self>
Build the context, preferring the RAD’s declared tag roles (#64) over the
tag-name conventions, so a role-annotated RAD whose tags use
non-conventional names is still read correctly. The default falls back to
the name-based
Self::get_context_from_tag_section; record contexts that
understand roles override this to try roles first and fall back to the name
bridge for un-annotated (legacy) files.Auto Trait Implementations§
impl Freeze for ScLongReadRecordContext
impl RefUnwindSafe for ScLongReadRecordContext
impl Send for ScLongReadRecordContext
impl Sync for ScLongReadRecordContext
impl Unpin for ScLongReadRecordContext
impl UnsafeUnpin for ScLongReadRecordContext
impl UnwindSafe for ScLongReadRecordContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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