Trait qmc::util::allocator::Factory [−][src]
pub trait Factory<T> { fn get_instance(&mut self) -> T; fn return_instance(&mut self, t: T); }
Expand description
A factory which produces Ts.
Required methods
fn get_instance(&mut self) -> T
fn get_instance(&mut self) -> T
Get an instance of T
fn return_instance(&mut self, t: T)
fn return_instance(&mut self, t: T)
Return an instance of T
Implementors
impl<ALLOC: FastOpAllocator> Factory<BondContainer<usize>> for SwitchableFastOpAllocator<ALLOC>
impl<ALLOC: FastOpAllocator> Factory<BondContainer<VarPos>> for SwitchableFastOpAllocator<ALLOC>
impl<ALLOC: FastOpAllocator> Factory<BinaryHeap<Reverse<usize>>> for SwitchableFastOpAllocator<ALLOC>
impl<ALLOC: FastOpAllocator> Factory<Vec<Option<usize>, Global>> for SwitchableFastOpAllocator<ALLOC>
impl<ALLOC: FastOpAllocator> Factory<Vec<(usize, OpSide), Global>> for SwitchableFastOpAllocator<ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BondContainer<usize>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BondContainer<VarPos>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BinaryHeap<Reverse<usize>>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<OpSide, Global>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<Option<usize>, Global>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<bool, Global>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<f64, Global>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<(usize, OpSide), Global>> for FastOpsTemplate<O, ALLOC>
impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<usize, Global>> for FastOpsTemplate<O, ALLOC>