pub enum BarcodeType {
Umi,
Sample,
Cell,
}Variants§
Implementations§
Source§impl BarcodeType
impl BarcodeType
Sourcepub fn parse_type(name: &str) -> Result<Self, Error>
pub fn parse_type(name: &str) -> Result<Self, Error>
Parses type of barcode
§Example
use barkit_extract::pattern::BarcodeType;
use barkit_extract::error::Error::UnexpectedCaptureGroupName;
assert_eq!(BarcodeType::Umi, BarcodeType::parse_type("UMI").unwrap());
assert_eq!(BarcodeType::Sample, BarcodeType::parse_type("SB").unwrap());
assert_eq!(BarcodeType::Cell, BarcodeType::parse_type("CB").unwrap());Trait Implementations§
Source§impl Clone for BarcodeType
impl Clone for BarcodeType
Source§fn clone(&self) -> BarcodeType
fn clone(&self) -> BarcodeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BarcodeType
impl Debug for BarcodeType
Source§impl Display for BarcodeType
impl Display for BarcodeType
impl Eq for BarcodeType
Source§impl PartialEq for BarcodeType
impl PartialEq for BarcodeType
Source§fn eq(&self, other: &BarcodeType) -> bool
fn eq(&self, other: &BarcodeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BarcodeType
Auto Trait Implementations§
impl Freeze for BarcodeType
impl RefUnwindSafe for BarcodeType
impl Send for BarcodeType
impl Sync for BarcodeType
impl Unpin for BarcodeType
impl UnsafeUnpin for BarcodeType
impl UnwindSafe for BarcodeType
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> 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