I'm writing a parser combinator library. I thought maybe I could also make the parser structs functions that operate on input, but I can't get the types right. The offending code.
Earls-MacBook-Pro:farce earljstsauver$ head 10 src/parser.rs
head: 10: No such file or directory
==> src/parser.rs <==
pub trait Parser<'b>: Fn(&str, Option<&str>) {
}
impl <'a> Fn(&str, Option<&str>) for LiteralParser<'a> {