#from-str #try-from #impl #try-from-and-str #delegating

macro tryfrom-via-fromstr

Derive TryFrom by delegating to the FromStr impl

2 releases

0.1.1 May 13, 2023
0.1.0 May 13, 2023

#1490 in Procedural macros

MIT license

13KB
268 lines

A rust proc-macro for deriving TryFrom<&str> from FromStr.


lib.rs:

See [macro@tryfrom_via_fromstr] for examples.

Dependencies

~265–720KB
~17K SLoC