template_builder

Trait TemplateConstruction

Source
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§

Source

fn on_create(&mut self, f: impl FnOnce(&mut Self::Output) + 'static)

Source

fn create(self) -> Self::Output

Source

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.

Implementors§