pub trait BundleDefault<Ctx = ()>: Sized {
// Required method
fn default_with_context(ctx: Ctx) -> Self;
}
Required Methods§
Sourcefn default_with_context(ctx: Ctx) -> Self
fn default_with_context(ctx: Ctx) -> Self
Creates a default value with the given context.
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.