[−][src]Trait operator_framework::utils::UseOrCreate  
Use the value of something optional, or create it first.
Required methods
fn use_or_create<F, R>(&mut self, f: F) -> R where
    F: FnOnce(&mut T) -> R, 
F: FnOnce(&mut T) -> R,
Provided methods
Loading content...Implementations on Foreign Types
impl<T> UseOrCreate<T> for Option<T> where
    T: Default, [src]
T: Default,
Implementation for Options which wrap Defaults.
fn use_or_create<F, R>(&mut self, f: F) -> R where
    F: FnOnce(&mut T) -> R, [src]
F: FnOnce(&mut T) -> R,