top | item 47125847

Rust Doesn't Have Named Arguments. So What?

2 points| romac | 6 days ago |thoughtbot.com

2 comments

order

stop50|6 days ago

Years ago i read about an rust library that allowed an developer to define an builder where the final buikd method was only accessible when all required methods where called.

romac|4 days ago

Yes there are many such crates, which can indeed kinda fill the gap. One of the more recent one is https://docs.rs/bon