NewBuildableValue

Trait NewBuildableValue 

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

Source

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.

Implementations on Foreign Types§

Source§

impl NewBuildableValue for char

Source§

impl NewBuildableValue for f32

Source§

impl NewBuildableValue for f64

Source§

impl NewBuildableValue for i8

Source§

impl NewBuildableValue for i16

Source§

impl NewBuildableValue for i32

Source§

impl NewBuildableValue for i64

Source§

impl NewBuildableValue for isize

Source§

impl NewBuildableValue for u8

Source§

impl NewBuildableValue for u16

Source§

impl NewBuildableValue for u32

Source§

impl NewBuildableValue for u64

Source§

impl NewBuildableValue for usize

Source§

impl NewBuildableValue for String

Source§

impl NewBuildableValue for PathBuf

Source§

impl<T> NewBuildableValue for Option<T>
where T: NewBuildableValue + 'static,

Source§

impl<T> NewBuildableValue for Box<T>
where T: NewBuildableValue + 'static,

Source§

impl<T> NewBuildableValue for Vec<T>
where T: NewBuildableValue + 'static,

Implementors§