Expand description
An efficient parser combinator.
See crate ::nom
.
Modules§
- bits
- Bit level parsers
- branch
- Choice combinators
- bytes
- Parsers recognizing bytes streams
- character
- Character specific parsers and combinators
- combinator
- General purpose combinators
- error
- Error management
- lib
- Lib module to re-export everything needed from
std
orcore
/alloc
. This is howserde
does it, albeit there it is not public. - multi
- Combinators applying their child parser multiple times
- number
- Parsers recognizing numbers
- sequence
- Combinators applying parsers in sequence
Macros§
- error_
node_ position - Creates a parse error from a
nom::ErrorKind
, the position in the input and the next error in the parsing tree - error_
position - Creates a parse error from a
nom::ErrorKind
and the position in the input
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
- Saturating
Iterator - A saturating iterator for usize.
- Streaming
- Indicates that the input data is streaming: more data may be available later
Enums§
- Compare
Result - Indicates whether a comparison was successful, an error, or if more data was needed
- Err
- The
Err
enum indicates the parser was not successful - Needed
- Contains information on needed data if a parser returned
Incomplete
Traits§
- AsBytes
- Helper trait for types that can be viewed as a byte slice
- AsChar
- Transforms common types to a char for basic token parsing
- Compare
- Abstracts comparison operations
- Error
Convert - Equivalent From implementation to avoid orphan rules in bits parsers
- Extend
Into - Abstracts something which can extend an
Extend
. Used to build modified input slices inescaped_transform
- Find
Substring - Look for a substring in self
- Find
Token - Look for a token in self
- Finish
- Helper trait to convert a parser’s result to a more manageable type
- HexDisplay
- Helper trait to show a byte slice as a hex dump
- Input
- Parser input types must implement this trait
- 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
- NomRange
- Abstractions for range-like types.
- Offset
- Useful functions to calculate the offset between slices and show a hexdump of a slice
- Output
Mode - Trait Defining the parser’s execution
- ParseTo
- Used to integrate
str
’sparse()
method - Parser
- All nom parsers implement this trait
- ToUsize
- Helper trait to convert numbers to usize.