Function chomp::parsers::take_remainder
[−]
[src]
pub fn take_remainder<I: Copy>(i: Input<I>) -> SimpleResult<I, &[I]>
Matches the remainder of the buffer and returns it, always succeeds.
use chomp::{Input, take_remainder}; let p = Input::new(b"abcd"); assert_eq!(take_remainder(p).unwrap(), b"abcd");