Skip to content

update: builder pattern with typestate example #441

@dzmitry-lahoda

Description

@dzmitry-lahoda

problem

current https://rust-unofficial.github.io/patterns/patterns/creational/builder.html?highlight=builder#builder is not typestate based, so it actually does nothing useful

solution

show how to manually do https://github.com/elastio/bon, and then how it will be done just using bon

note

also bon does idiomatic partial application in rust, not sure - may be it should go as separate pattern

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions