Trait init_with::InitWith [] [src]

pub trait InitWith<T> {
    fn init_with<F>(init: F) -> Self where F: FnMut() -> T, Self: Sized;
}

A trait that allows you to create an instance of a type with a given function.

Required Methods

Create a new instance of this type using the given function to fill elements.

Implementors