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
//! Parsing utilities and traits.
//!
//! # Unpacking parser output
//!
//! [`Unpack`] is re-exported from the [`unpackable`] crate. Typeward implements
//! it for transparent combinators such as [`Ws`](crate::combinators::Ws),
//! [`DelimitedExact`](crate::combinators::DelimitedExact),
//! [`DelimNested`](crate::combinators::DelimNested), and
//! [`And`](crate::combinators::And), and for collection combinators such as
//! [`Many1`](crate::collections::Many1), [`Repeat`](crate::collections::Repeat),
//! [`Separated`](crate::combinators::Separated), and
//! [`Collect`](crate::collections::Collect).
//! [`Span`](crate::combinators::Span) and [`Nested`] preserve their wrapper
//! while unpacking the inner value.
//!
//! Deriving [`Parse`] uses it automatically for `#[parse(from(ParserType))]` fields that
//! do not provide an explicit mapper.
//!
//! It is recommended to implement [`Unpack`] for your own combinators and wrapper types, so that they can be used seamlessly with the derive macro.
//! (derive support to be added in the future for implementing [`Unpack`] for your own types, but for now you can implement it manually).
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;