pub trait TemplateConstruction: Default + Template {
// Required methods
fn on_create(&mut self, f: impl FnOnce(&mut Self::Output) + 'static);
fn create(self) -> Self::Output;
fn build<O>(self, f: impl FnOnce(Self::Output) -> O) -> O;
}
Required Methods§
fn on_create(&mut self, f: impl FnOnce(&mut Self::Output) + 'static)
fn create(self) -> Self::Output
fn build<O>(self, f: impl FnOnce(Self::Output) -> O) -> O
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.