pub trait InitializeFromFunction<T> {
// Required method
fn initialize_from_function(f: fn() -> T) -> Self;
}
Expand description
A trait for an item that can be constructed from an initialization function
Required Methods§
sourcefn initialize_from_function(f: fn() -> T) -> Self
fn initialize_from_function(f: fn() -> T) -> Self
Create an instance of this type from an initialization function
Object Safety§
This trait is not object safe.