Trait qmc::util::allocator::Factory[][src]

pub trait Factory<T> {
    fn get_instance(&mut self) -> T;
fn return_instance(&mut self, t: T); }

A factory which produces Ts.

Required methods

fn get_instance(&mut self) -> T[src]

Get an instance of T

fn return_instance(&mut self, t: T)[src]

Return an instance of T

Loading content...

Implementors

impl Factory<BondContainer<usize>> for DefaultFastOpAllocator[src]

impl Factory<BondContainer<VarPos>> for DefaultFastOpAllocator[src]

impl Factory<BinaryHeap<Reverse<usize>>> for DefaultFastOpAllocator[src]

impl Factory<Vec<OpSide, Global>> for DefaultFastOpAllocator[src]

impl Factory<Vec<Option<usize>, Global>> for DefaultFastOpAllocator[src]

impl Factory<Vec<bool, Global>> for DefaultFastOpAllocator[src]

impl Factory<Vec<f64, Global>> for DefaultFastOpAllocator[src]

impl Factory<Vec<(usize, OpSide), Global>> for DefaultFastOpAllocator[src]

impl Factory<Vec<usize, Global>> for DefaultFastOpAllocator[src]

impl<ALLOC: FastOpAllocator> Factory<BondContainer<usize>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<BondContainer<VarPos>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<BinaryHeap<Reverse<usize>>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<OpSide, Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<Option<usize>, Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<bool, Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<f64, Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<(usize, OpSide), Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<ALLOC: FastOpAllocator> Factory<Vec<usize, Global>> for SwitchableFastOpAllocator<ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BondContainer<usize>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BondContainer<VarPos>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<BinaryHeap<Reverse<usize>>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<OpSide, Global>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<Option<usize>, Global>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<bool, Global>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<f64, Global>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<(usize, OpSide), Global>> for FastOpsTemplate<O, ALLOC>[src]

impl<O: Op + Clone, ALLOC: FastOpAllocator> Factory<Vec<usize, Global>> for FastOpsTemplate<O, ALLOC>[src]

Loading content...