Struct sourmash::cmd::ComputeParameters
source · pub struct ComputeParameters { /* private fields */ }
Implementations§
source§impl ComputeParameters
impl ComputeParameters
sourcepub fn builder(
) -> ComputeParametersBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
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
impl ComputeParameters
pub fn check_sequence(&self) -> bool
pub fn dna(&self) -> bool
pub fn dayhoff(&self) -> bool
pub fn hp(&self) -> bool
pub fn singleton(&self) -> bool
pub fn scaled(&self) -> u64
pub fn force(&self) -> bool
pub fn num_hashes(&self) -> u32
pub fn protein(&self) -> bool
pub fn name_from_first(&self) -> bool
pub fn seed(&self) -> u64
pub fn input_is_protein(&self) -> bool
pub fn track_abundance(&self) -> bool
pub fn randomize(&self) -> bool
pub fn processes(&self) -> usize
source§impl ComputeParameters
impl ComputeParameters
pub fn set_ksizes(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_check_sequence(&mut self, val: bool) -> &mut Self
pub fn set_dna(&mut self, val: bool) -> &mut Self
pub fn set_dayhoff(&mut self, val: bool) -> &mut Self
pub fn set_hp(&mut self, val: bool) -> &mut Self
pub fn set_singleton(&mut self, val: bool) -> &mut Self
pub fn set_scaled(&mut self, val: u64) -> &mut Self
pub fn set_force(&mut self, val: bool) -> &mut Self
pub fn set_output(&mut self, val: Option<String>) -> &mut Self
pub fn set_num_hashes(&mut self, val: u32) -> &mut Self
pub fn set_protein(&mut self, val: bool) -> &mut Self
pub fn set_name_from_first(&mut self, val: bool) -> &mut Self
pub fn set_seed(&mut self, val: u64) -> &mut Self
pub fn set_input_is_protein(&mut self, val: bool) -> &mut Self
pub fn set_merge(&mut self, val: Option<String>) -> &mut Self
pub fn set_track_abundance(&mut self, val: bool) -> &mut Self
pub fn set_randomize(&mut self, val: bool) -> &mut Self
pub fn set_license(&mut self, val: String) -> &mut Self
pub fn set_processes(&mut self, val: usize) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComputeParameters
impl RefUnwindSafe for ComputeParameters
impl Send for ComputeParameters
impl Sync for ComputeParameters
impl Unpin for ComputeParameters
impl UnwindSafe for ComputeParameters
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.