Method
parse
(input: &I, current: I::Pos, _context: &ParseContext)
Source from the content-addressed store, hash-verified
| 88 | type Output = char; |
| 89 | |
| 90 | fn parse(input: &I, current: I::Pos, _context: &ParseContext) -> ResultOf<I, Self::Output> |
| 91 | { |
| 92 | let (c, next) = input.next(current).map_err(|e| e.new_cause(current, "ExpectCharacter"))?; |
| 93 | |
| 94 | if P::evaluate(&c) |
| 95 | { |
| 96 | Ok((c, next)) |
| 97 | } |
| 98 | else |
| 99 | { |
| 100 | Err(input.err_at(current, "ExpectCharacter")) |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | pub struct Null; |
Tested by
no test coverage detected