Trait BuilderContext

Source
pub trait BuilderContext {
    // Required method
    fn get_dependency_recorder() -> Option<Box<dyn RebuildDependencyRecorder>>;

    // Provided method
    fn setup() { ... }
}
Expand description

The context in which a builder object lives. Callbacks for various purposes.

Required Methods§

Source

fn get_dependency_recorder() -> Option<Box<dyn RebuildDependencyRecorder>>

Create a dependency recorder, if any.

Provided Methods§

Source

fn setup()

Perform any initialization specific to the context in which this builder lives.

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§