Function combine::combinator::range
[−]
[src]
pub fn range<I, E>(i: I::Range) -> Range<I> where I: RangeStream<Item=E>, I::Range: Positioner<Position=E::Position> + PartialEq + Range, E: Positioner + Clone
let mut parser = range("hello"); let result = parser.parse("hello world"); assert_eq!(result, Ok(("hello", " world"))); let result = parser.parse("hel world"); assert!(result.is_err());