Skip to main content

Builder

Trait Builder 

Source
pub trait Builder {
    type Built;

    // Required method
    fn build(&self) -> Result<Self::Built, ConfigBuildError>;
}
Expand description

A type that can build some buildable type via a build method.

Required Associated Types§

Source

type Built

The type that this builder constructs.

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

Required Methods§

Source

fn build(&self) -> Result<Self::Built, ConfigBuildError>

Build into a Built

Often shadows an inherent build method

Implementors§