Trait qmc::sse::qmc_traits::MutateArgs [−][src]
pub trait MutateArgs {
type SubvarIndex: Into<usize> + From<usize>;
fn n_subvars(&self) -> usize;
fn subvar_to_var(&self, index: Self::SubvarIndex) -> usize;
fn var_to_subvar(&self, var: usize) -> Option<Self::SubvarIndex>;
}
Expand description
Args required to mutate, allows flexibility of implementations.
Associated Types
Required methods
fn subvar_to_var(&self, index: Self::SubvarIndex) -> usize
fn subvar_to_var(&self, index: Self::SubvarIndex) -> usize
Map subvars to variables.
fn var_to_subvar(&self, var: usize) -> Option<Self::SubvarIndex>
fn var_to_subvar(&self, var: usize) -> Option<Self::SubvarIndex>
Map variables to subvars.