Skip to main content

Buildable

Trait Buildable 

Source
pub trait Buildable: Sized + Default {
    type Builder: Builder<Self>;

    // Required method
    fn builder() -> Self::Builder;
}
Expand description

Trait for objects that can be built with a standard builder

Required Associated Types§

Required Methods§

Source

fn builder() -> Self::Builder

Create a new builder for this 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§