[][src]Trait qmc::sse::qmc_traits::MutateArgs

pub trait MutateArgs {
    type SubvarIndex: Into<usize> + From<usize>;
    pub fn n_subvars(&self) -> usize;
pub fn subvar_to_var(&self, index: Self::SubvarIndex) -> usize;
pub 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

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

Number of subvars.

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

Map subvars to variables.

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

Map variables to subvars.

Loading content...

Implementors

impl MutateArgs for FastOpMutateArgs[src]

type SubvarIndex = usize

Loading content...