We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Parser::maybe_parse
1 parent 58460ac commit 6cca97aCopy full SHA for 6cca97a
src/parser/mod.rs
@@ -3397,7 +3397,7 @@ impl<'a> Parser<'a> {
3397
3398
/// Run a parser method `f`, reverting back to the current position if unsuccessful.
3399
#[must_use]
3400
- fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
+ pub fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
3401
where
3402
F: FnMut(&mut Parser) -> Result<T, ParserError>,
3403
{
0 commit comments