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>; }

Args required to mutate, allows flexibility of implementations.

Associated Types

type SubvarIndex: Into<usize> + From<usize>[src]

Type for subvar indices, helps distinguish from variables.

Loading content...

Required methods

fn n_subvars(&self) -> usize[src]

Number of subvars.

fn subvar_to_var(&self, index: Self::SubvarIndex) -> usize[src]

Map subvars to variables.

fn var_to_subvar(&self, var: usize) -> Option<Self::SubvarIndex>[src]

Map variables to subvars.

Loading content...

Implementors

Loading content...