diff options
Diffstat (limited to 'src/combinator/sequence.rs')
-rw-r--r-- | src/combinator/sequence.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/combinator/sequence.rs b/src/combinator/sequence.rs index 5cfeb9c..0f2e633 100644 --- a/src/combinator/sequence.rs +++ b/src/combinator/sequence.rs @@ -1,14 +1,19 @@ +use crate::combinator::trace; use crate::error::ParserError; use crate::stream::Stream; -use crate::trace::trace; use crate::*; +#[doc(inline)] +pub use crate::seq; + /// Sequence two parsers, only returning the output from the second. /// /// # Arguments /// * `first` The opening parser. /// * `second` The second parser to get object. /// +/// See also [`seq`] to generalize this across any number of fields. +/// /// # Example /// /// ```rust @@ -47,6 +52,8 @@ where /// * `first` The first parser to apply. /// * `second` The second parser to match an object. /// +/// See also [`seq`] to generalize this across any number of fields. +/// /// # Example /// /// ```rust @@ -86,6 +93,8 @@ where /// * `sep` The separator parser to apply. /// * `second` The second parser to apply. /// +/// See also [`seq`] to generalize this across any number of fields. +/// /// # Example /// /// ```rust @@ -127,6 +136,8 @@ where /// * `second` The second parser to apply. /// * `third` The third parser to apply and discard. /// +/// See also [`seq`] to generalize this across any number of fields. +/// /// # Example /// /// ```rust |