pub trait Initialize<T> {
// Required method
fn init() -> T;
}Expand description
Trait for types that allow for initializing a solver or other types
This is very similar to the Default trait, but allows for implementing multiple
initializers for the same solver. Having this as a trait rather than simply a function allows
for more flexibility with generics.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.