pub fn end<'a, I>() -> Parser<'a, I, ()>
where
	I: Display,
{
	Parser::new(|input: &'a [I], start: usize| {
		if let Some(s) = input.get(start) {
			Err(Error::Mismatch {
				message: format!("expect end of input, found: {}", s),
				position: start,
			})
		} else {
			Ok(((), start))
		}
	})
}
/// Success when end of input is reached.
Success when end of input is reached.
Success when end of input is reached .
pub fn end<'a, I>() -> Parser<'a, I, ()>
where
	I: Display,
{
	Parser::new(|input: &'a [I], start: usize| {
		if let Some(s) = input.get(start) {
			Err(Error::Mismatch {
				message: format!("expect end of input, found: {}", s),
				position: start,
			})
		} else {
			Ok(((), start))
		}
	})
}
pub fn end < ' a , I > ( ) -> Parser < ' a , I , ( ) > where I : Display , { Parser :: new ( | input : & ' a [ I ] , start : usize | { if let Some ( s ) = input . get ( start ) { Err ( Error :: Mismatch { message : format ! ( " " s ) , position : start , } ) } else { Ok ( ( ( ) , start ) ) } } ) }
Success when end of input is reached.
Success when end of input is reached .