#nom crate different input types

2 messages · Page 1 of 1 (latest)

brave tusk
#

I have a parser function in nom, which takes &[u8] as input. Now I want to use it from a function which uses &str. I want to convert between the result types IResult<&[u8], _> and IResult<&str, _> with into(), but (obviously) that doesn't work. Is there another way? ferrisWhat

raven dew