pub trait InitWith<F, U> {
type Cont<T>;
// Required method
fn init_with(f: F) -> Self::Cont<U>
where F: FnOnce() -> U,
Self: Sized;
}Expand description
InitWith enables a container to
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".