pub trait NewBuildableValue {
// Required method
fn new_buildable_value(
config: BuildableValueConfig<()>,
) -> Box<dyn BuildableValue>;
}
Expand description
A type that can be built with a BuildableValue
inside a Builder
. Keep in mind that the
semantics of the generated builder must be compatible with this type, especially looking at the
get_value_any
method.
Required Methods§
Sourcefn new_buildable_value(
config: BuildableValueConfig<()>,
) -> Box<dyn BuildableValue>
fn new_buildable_value( config: BuildableValueConfig<()>, ) -> Box<dyn BuildableValue>
Construct a new BuildableValue
using the provided configuration. Note that using this
constructor instead of the new
method of the actual builder opaques the inner type.
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.