You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
|[`Parser::map_err`]|`a.map_err(...)`| Parse a pattern. On failure, map the parser error to another value. Often used to customise error messages or add extra information to them. |
97
-
|[`Parser::map_err_with_state`]|`a.lazy()`| Like [`Parser::map_err`], but provides access to the parser state (see [`Parser::parse_with_state`] for more information). |
97
+
|[`Parser::map_err_with`]|`a.map_err_with(...)`| Like [`Parser::map_err`], but provides access to metadata associated with the output. |
98
+
|[`Parser::map_err_with_state`]|`a.map_err_with_state(...)`| Like [`Parser::map_err`], but provides access to the parser state (see [`Parser::parse_with_state`] for more information). |
98
99
|[`Parser::try_foldl`]|`a.try_foldl(...)`| Left-fold the output of the parser into a single value, possibly failing during the reduction. If the function produces an error, the parser fails with that error. |
99
100
|[`Parser::try_map`]|`a.try_map(...)`| Map the output of a parser using the given fallible mapping function. If the function produces an error, the parser fails with that error. |
100
101
|[`Parser::try_map_with`]|`a.try_map_with(...)`| Map the output of a parser using the given fallible mapping function, with access to output metadata. If the function produces an error, the parser fails with that error. |
101
102
|[`Parser::validate`]|`a.validate(...)`| Parse a pattern. On success, map the output to another value with the opportunity to emit extra secondary errors. Commonly used to check the validity of patterns in the parser. |
102
103
|[`Parser::filter`]|`any().filter(char::is_lowercase)`| Parse a pattern and apply the given filtering function to the output. If the filter function returns [`false`], the parser fails. |
103
-
|[`Parser::filter_map`]| `any().filter_map(...)| Parse a pattern and apply the given filter-map function to the output. If the filter-map function returns [`None`], the parser fails. |
104
+
|[`Parser::filter_map`]|`any().filter_map(...)`| Parse a pattern and apply the given filter-map function to the output. If the filter-map function returns [`None`], the parser fails. |
104
105
|[`Parser::labelled`]|`a.labelled("a")`| Parse a pattern, labelling it. What exactly this does depends on the error type, but it is generally used to give a pattern a more general name (for example, "expression"). |
0 commit comments