Open kjvalencik opened 7 years ago
In other words, is there a concise way to map an arbitrary Result to a chomp error?
Result
In nom, I would do the following:
nom
map_res!( take_until_and_consume!("\n"), str::from_utf8 )
How would I do that with chomp?
In other words, is there a concise way to map an arbitrary
Result
to a chomp error?In
nom
, I would do the following:How would I do that with chomp?