pub fn expect(self, name: &'a str) -> Parser<'a, I, O>
	where
		O: 'a,
	{
		Parser::new(
			move |input: &'a [I], start: usize| match (self.method)(input, start) {
				res @ Ok(_) => res,
				Err(err) => Err(Error::Expect {
					message: format!("Expect {}", name),
					position: start,
					inner: Box::new(err),
				}),
			},
		)
	}
/// Mark parser as expected, abort early when failed in ordered choice.
Mark parser as expected, abort early when failed in ordered choice.
Mark parser as expected abort early when failed in ordered choice .
pub fn expect(self, name: &'a str) -> Parser<'a, I, O>
	where
		O: 'a,
	{
		Parser::new(
			move |input: &'a [I], start: usize| match (self.method)(input, start) {
				res @ Ok(_) => res,
				Err(err) => Err(Error::Expect {
					message: format!("Expect {}", name),
					position: start,
					inner: Box::new(err),
				}),
			},
		)
	}
pub fn expect ( self , name : & ' a str ) -> Parser < ' a , I , O > where O : ' a , { Parser :: new ( move | input : & ' a [ I ] , start : usize | match ( self . method ) ( input , start ) { res @ Ok ( _ ) => res , Err ( err ) => Err ( Error :: Expect { message : format ! ( " " name ) , position : start , inner : Box :: new ( err ) , } ) , } , ) }
Mark parser as expected, abort early when failed in ordered choice.
Mark parser as expected abort early when failed in ordered choice .
self
name
&'a str