pub struct ComputeParameters { /* private fields */ }

Implementations§

source§

impl ComputeParameters

source

pub fn builder( ) -> ComputeParametersBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

Create a builder for building ComputeParameters. On the builder, call .ksizes(...)(optional), .check_sequence(...)(optional), .dna(...)(optional), .dayhoff(...)(optional), .hp(...)(optional), .singleton(...)(optional), .scaled(...)(optional), .force(...)(optional), .output(...)(optional), .num_hashes(...)(optional), .protein(...)(optional), .name_from_first(...)(optional), .seed(...)(optional), .input_is_protein(...)(optional), .merge(...)(optional), .track_abundance(...)(optional), .randomize(...)(optional), .license(...)(optional), .processes(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of ComputeParameters.

source§

impl ComputeParameters

source

pub fn check_sequence(&self) -> bool

source

pub fn dna(&self) -> bool

source

pub fn dayhoff(&self) -> bool

source

pub fn hp(&self) -> bool

source

pub fn singleton(&self) -> bool

source

pub fn scaled(&self) -> u64

source

pub fn force(&self) -> bool

source

pub fn num_hashes(&self) -> u32

source

pub fn protein(&self) -> bool

source

pub fn name_from_first(&self) -> bool

source

pub fn seed(&self) -> u64

source

pub fn input_is_protein(&self) -> bool

source

pub fn track_abundance(&self) -> bool

source

pub fn randomize(&self) -> bool

source

pub fn processes(&self) -> usize

source§

impl ComputeParameters

source

pub fn ksizes(&self) -> &Vec<u32>

source

pub fn output(&self) -> &Option<String>

source

pub fn merge(&self) -> &Option<String>

source

pub fn license(&self) -> &String

source§

impl ComputeParameters

source

pub fn set_ksizes(&mut self, val: Vec<u32>) -> &mut Self

source

pub fn set_check_sequence(&mut self, val: bool) -> &mut Self

source

pub fn set_dna(&mut self, val: bool) -> &mut Self

source

pub fn set_dayhoff(&mut self, val: bool) -> &mut Self

source

pub fn set_hp(&mut self, val: bool) -> &mut Self

source

pub fn set_singleton(&mut self, val: bool) -> &mut Self

source

pub fn set_scaled(&mut self, val: u64) -> &mut Self

source

pub fn set_force(&mut self, val: bool) -> &mut Self

source

pub fn set_output(&mut self, val: Option<String>) -> &mut Self

source

pub fn set_num_hashes(&mut self, val: u32) -> &mut Self

source

pub fn set_protein(&mut self, val: bool) -> &mut Self

source

pub fn set_name_from_first(&mut self, val: bool) -> &mut Self

source

pub fn set_seed(&mut self, val: u64) -> &mut Self

source

pub fn set_input_is_protein(&mut self, val: bool) -> &mut Self

source

pub fn set_merge(&mut self, val: Option<String>) -> &mut Self

source

pub fn set_track_abundance(&mut self, val: bool) -> &mut Self

source

pub fn set_randomize(&mut self, val: bool) -> &mut Self

source

pub fn set_license(&mut self, val: String) -> &mut Self

source

pub fn set_processes(&mut self, val: usize) -> &mut Self

Trait Implementations§

source§

impl Default for ComputeParameters

source§

fn default() -> Self

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

Auto Trait Implementations§

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> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

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

source§

fn vzip(self) -> V

source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.