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::{parse_only, take_remainder}; assert_eq!(parse_only(take_remainder, b"abcd"), Ok(&b"abcd"[..]));