Function chumsky::primitive::end [−][src]
pub fn end<E>() -> End<E>
Expand description
A parser that accepts only the end of input.
Examples
assert_eq!(end::<Cheap<char>>().parse(""), Ok(()));
assert!(end::<Cheap<char>>().parse("hello").is_err());