pub fn map<U, F>(self, f: F) -> Parser<'a, I, U>
	where
		F: Fn(O) -> U + 'a,
		I: 'a,
		O: 'a,
		U: 'a,
	{
		Parser::new(move |input: &'a [I], start: usize| {
			(self.method)(input, start).map(|(out, pos)| (f(out), pos))
		})
	}
/// Convert parser result to desired value.
Convert parser result to desired value.
Convert parser result to desired value .
pub fn map<U, F>(self, f: F) -> Parser<'a, I, U>
	where
		F: Fn(O) -> U + 'a,
		I: 'a,
		O: 'a,
		U: 'a,
	{
		Parser::new(move |input: &'a [I], start: usize| {
			(self.method)(input, start).map(|(out, pos)| (f(out), pos))
		})
	}
pub fn map < U , F > ( self , f : F ) -> Parser < ' a , I , U > where F : Fn ( O ) -> U + ' a , I : ' a , O : ' a , U : ' a , { Parser :: new ( move | input : & ' a [ I ] , start : usize | { ( self . method ) ( input , start ) . map ( | ( out , pos ) | ( f ( out ) , pos ) ) } ) }
Convert parser result to desired value.
Convert parser result to desired value .
self
f
F