pub struct SequenceErrors { /* private fields */ }

Implementations§

source§

impl SequenceErrors

source

pub fn new() -> Self

Create a new sequence error struct. Starts with 0 errors in all regions, then is added to later.

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
source

pub fn constant_region_error(&mut self)

Add one to constant region error

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.constant_region_error();
source

pub fn sample_barcode_error(&mut self)

Add one to sample barcode error

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.sample_barcode_error();
source

pub fn barcode_error(&mut self)

Add one to barcode error

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.barcode_error();
source

pub fn correct_match(&mut self)

Add one to correct match

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.correct_match();
source

pub fn duplicated(&mut self)

Add one to duplicates

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.duplicated();
source

pub fn low_quality_barcode(&mut self)

Add one to low_quality

Example
use barcode_count::info::SequenceErrors;

let mut sequence_errors = SequenceErrors::new();
sequence_errors.low_quality_barcode();
source

pub fn arc_clone(&self) -> SequenceErrors

Trait Implementations§

source§

impl Clone for SequenceErrors

source§

fn clone(&self) -> SequenceErrors

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SequenceErrors

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SequenceErrors

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for SequenceErrors

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.