Trait Buildable

Source
pub trait Buildable<T> {
    // Required method
    fn builder() -> Builder<T>;
}
Expand description

A type that supports being built using a Builder. Deriving IBuilder an auto-generated implementation for this trait is provided.

Required Methods§

Source

fn builder() -> Builder<T>

Create a new Builder<T> for the current 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.

Implementors§

Source§

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