Trait lifeguard::Supply
[−]
[src]
pub trait Supply {
type Output: Recycleable;
fn get(&mut self) -> Self::Output;
}Provides a method which will produce new instances of a type
Associated Types
type Output: Recycleable
Required Methods
fn get(&mut self) -> Self::Output
Implementors
impl<F, T> Supply for F where F: FnMut() -> T, T: Recycleable