Method
can_success
(&self, req: &Request<'_, S>)
Source from the content-addressed store, hash-verified
| 1155 | } |
| 1156 | |
| 1157 | const fn can_success<S>(&self, req: &Request<'_, S>) -> bool { |
| 1158 | if !self.toplevel { |
| 1159 | return true; |
| 1160 | } |
| 1161 | if req.match_all && !self.at_end(req) { |
| 1162 | return false; |
| 1163 | } |
| 1164 | if req.must_advance && self.cursor.position == req.start { |
| 1165 | return false; |
| 1166 | } |
| 1167 | true |
| 1168 | } |
| 1169 | |
| 1170 | #[must_use] |
| 1171 | fn next_peek_from<S>(&mut self, peek: usize, req: &Request<'_, S>, jump: Jump) -> Self { |
Tested by
no test coverage detected