[][src]Trait lifeguard::Supply

pub trait Supply {
    type Output: Recycleable;
    pub fn get(&mut self) -> Self::Output;
}

Provides a method which will produce new instances of a type

Associated Types

Loading content...

Required methods

pub fn get(&mut self) -> Self::Output[src]

Loading content...

Implementors

impl<F, T> Supply for F where
    F: FnMut() -> T,
    T: Recycleable
[src]

type Output = T

Loading content...