I want a crate where I can do
[derive(From<u8>, Into<u8>, AsRef<u8>)]
pub struct MyNewType(u8)
or similar. Is there some libstd or a crate that does this? The newtype_derive crate seems to be from before custom_derive in stable.
I want a crate where I can do
[derive(From<u8>, Into<u8>, AsRef<u8>)]
pub struct MyNewType(u8)
or similar. Is there some libstd or a crate that does this? The newtype_derive crate seems to be from before custom_derive in stable.