Skip to main content

Buildable

Trait Buildable 

Source
pub trait Buildable {
    type Builder;

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

A type that can be built from a builder.

Required Associated Types§

Source

type Builder

The type that constructs this Buildable.

Typically, this type will implement Builder. If it does, then <Self::Builder>::Built should be Self.

Required Methods§

Source

fn builder() -> Self::Builder

Return 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".

Implementors§