Expand description
Basic types to build the parsers
Macros§
Structs§
- And
- Implementation of
Parser::and
- AndThen
- Implementation of
Parser::and_then
- Check
- Applies the parser, but do not a produce a value
- Complete
- Indicates that the input data is complete: no more data may be added later
- Emit
- Produces a value. This is the default behaviour for parsers
- FlatMap
- Implementation of
Parser::flat_map
- Into
- Implementation of
Parser::into
- Map
- Implementation of
Parser::map
- MapOpt
- Implementation of
Parser::map_opt
- MapRes
- Implementation of
Parser::map_res
- Or
- Implementation of
Parser::or
- OutputM
- Holds the parser execution modifiers: output Mode, error Mode and streaming behaviour for input data
- Streaming
- Indicates that the input data is streaming: more data may be available later
Enums§
- Either 🔒
- Alternate between two Parser implementations with the same result type.
- Err
- The
Err
enum indicates the parser was not successful - Needed
- Contains information on needed data if a parser returned
Incomplete
Traits§
- Finish
- Helper trait to convert a parser’s result to a more manageable type
- IsStreaming
- Specifies the behaviour when a parser encounters an error that could be due to partial ata
- Mode
- Parser mode: influences how combinators build values
- Output
Mode - Trait Defining the parser’s execution
- Parser
- All nom parsers implement this trait