The newtype idiom gives compile time guarantees that the right type of value is supplied to a program.
This crate provides a declarative macro for you to build a wrapper type and implementing common traits for it.
For changes and migration guide, please refer to the CHANGELOG.
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.