Nutype: the newtype with guarantees

271 points greyblake

Hi there,

The last few months I spent my spare time working on nutype crate. With this post I just want to share the work with you.

Here is the github repo: https://github.com/greyblake/nutype

Here is an introductionary blog article: https://www.greyblake.com/blog/nutype-the-newtype-with-guarantees/

If you have any comments, questions, proposals or critique I am looking forward. Although, I know that some design decisions I made were very opinionated.

Thanks.