Module prelude
Available on crate feature
dep_winnow
only.Expand description
Core concepts available for glob import
Including
§Example
use winnow::prelude::*;
fn parse_data(input: &mut &str) -> ModalResult<u64> {
// ...
}
fn main() {
let result = parse_data.parse("100");
assert_eq!(result, Ok(100));
}
Traits§
- Modal
Parser - Trait alias for
Parser
to be used withModalResult
- Parser
- Core trait for parsing
- _
- Manipulate the how parsers respond to this error
- _
- The basic
Parser
trait for errors - _
- Transforms a token into a char for basic string parsing
- _
- Check if a token is in a set of possible tokens
- _
- Core definition for parser input state
- _
- Marks the input as being the complete buffer or a partial buffer for streaming input