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

Loading content...