Lines Matching +full:merge +full:- +full:stream
11 ErrorOffset, Parser, Stream, StreamOnce,
23 /// # use combine::stream::easy::Error;
52 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> {
60 ) -> ParseResult<Self::Output, Input::Error> {
70 pub trait ChoiceParser<Input: Stream> {
78 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>; in parse_first()
84 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>; in parse_partial()
91 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_choice()
101 Input: Stream,
114 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_choice()
130 macro_rules! merge { macro
135 $head.error.merge(merge!($($tail)+))
149 let mut error = Tracked::from(merge!($($error)+));
152 // `PeekErr`. Since we lose the offsets of the nested parsers when we merge
153 // the errors we must first extract the errors before we do the merge.
228 fn default() -> Self {
236 Input: Stream,
250 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
310 Input: Stream,
324 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
358 Input: Stream,
371 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_impl()
390 ) -> ParseResult<P::Output, <Input as StreamOnce>::Error> in slice_parse_mode()
393 Input: Stream, in slice_parse_mode() argument
402 return self_[*index_state - 1] in slice_parse_mode()
427 for p in &mut self_[last_parser_having_non_1_offset..(i - 1)] { in slice_parse_mode()
433 self_[i - 1].add_error(&mut prev_err); in slice_parse_mode()
437 error: prev_err.error.merge(err.error), in slice_parse_mode()
459 for p in &mut self_[last_parser_having_non_1_offset..(len - 1)] { in slice_parse_mode()
474 Input: Stream,
485 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_partial()
494 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_first()
504 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_choice()
552 pub fn choice<Input, P>(ps: P) -> Choice<P> in choice()
554 Input: Stream, in choice()
564 Input: Stream,
578 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_impl()
624 pub fn or<Input, P1, P2>(p1: P1, p2: P2) -> Or<P1, P2> in or()
626 Input: Stream, in or() argument
637 Input: Stream,
650 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> in parse_mode_impl()
683 pub fn optional<Input, P>(parser: P) -> Optional<P> in optional()
685 Input: Stream, in optional()
699 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> {
707 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> {
734 Input: $crate::Stream,
745 ) -> $crate::error::ParseResult<Self::Output, <Input as $crate::StreamOnce>::Error>
825 … fn check_parser<Input, P>(p: P) -> P where P: $crate::Parser<Input>, Input: $crate::Stream { p }