greyblake / nutype

Rust newtype with guarantees 🇺🇦 🦀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Derive FromStr for generic newtype

greyblake opened this issue · comments

The following types should compile and work as expected:

use nutype::nutype;


#[nutype(derive(Debug, FromStr))]
struct Parseable<T>(T);

Make sure to have a proper test coverage