[][src]Function combine::value

pub fn value<Input, T>(v: T) -> Value<Input, T> where
    Input: Stream,
    T: Clone

Always returns the value v without consuming any input.

let result = value(42)
    .parse("hello world")
    .map(|x| x.0);
assert_eq!(result, Ok(42));