We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Parser::maybe_parse
1 parent dfb8b81 commit 2d4b9b3Copy full SHA for 2d4b9b3
src/parser/mod.rs
@@ -3383,7 +3383,7 @@ impl<'a> Parser<'a> {
3383
3384
/// Run a parser method `f`, reverting back to the current position if unsuccessful.
3385
#[must_use]
3386
- 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>
3387
where
3388
F: FnMut(&mut Parser) -> Result<T, ParserError>,
3389
{
0 commit comments