Trait qmc::sse::qmc_traits::op_container::OpContainer [−][src]
pub trait OpContainer {
type Op: Op;
fn get_cutoff(&self) -> usize;
fn set_cutoff(&mut self, cutoff: usize);
fn get_n(&self) -> usize;
fn get_nvars(&self) -> usize;
fn get_pth(&self, p: usize) -> Option<&Self::Op>;
fn get_count(&self, bond: usize) -> usize;
fn itime_fold<F, T>(&self, state: &mut [bool], fold_fn: F, init: T) -> T
where
F: Fn(T, &[bool]) -> T;
fn verify(&self, state: &[bool]) -> bool { ... }
}
Expand description
Contain and manage ops.
Associated Types
Required methods
fn get_cutoff(&self) -> usize
fn get_cutoff(&self) -> usize
Get the cutoff for this container.
fn set_cutoff(&mut self, cutoff: usize)
fn set_cutoff(&mut self, cutoff: usize)
Set the cutoff for this container.