#from-str #try-from #impl #try-from-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

#1339 in Procedural macros

Download history 3/week @ 2024-02-16 11/week @ 2024-02-23 4/week @ 2024-03-01 6/week @ 2024-03-08 3/week @ 2024-03-15 25/week @ 2024-03-29 2/week @ 2024-04-05 33/week @ 2024-04-12

60 downloads per month

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

~305–760KB
~18K SLoC