1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//! Generic error, state and context types for parsers
//! Useful for custom allocation, error handling, context-specific parsers, and more.
use Inspector;
pub use SimpleState;
use *;
type DefaultErr = EmptyErr;
type DefaultState = ;
type DefaultCtx = ;
/// A trait for extra types on a [`Parser`] that control the behavior of certain combinators and output.
///
/// Currently, this consists of the error type emitted, the state type used in the `*_state` combinators,
/// and the context type used in the `*_ctx` and `*configure` parsers.
///
/// This trait is sealed and so cannot be implemented by other crates because all uses should instead
/// go through the types defined in this module.
/// Use all default extra types. See [`ParserExtra`] for more details.
pub type Default = ;
/// Use specified error type, but default other types. See [`ParserExtra`] for more details.
pub type Err<E> = ;
/// Use specified state type, but default other types. See [`ParserExtra`] for more details.
///
/// Use `State<S>` or `Full<E, S, C>` as the `Extra` type parameter of a parser to use a custom state type.
/// You can then use `parser().parse_with_state(&mut S)` to parse with a custom state.
///
/// See [`Parser::map_with`] for examples.
pub type State<S> = ;
/// Use specified context type, but default other types. See [`ParserExtra`] for more details.
pub type Context<C> = ;
/// Specify all extra types. See [`ParserExtra`] for more details.
>);