Function string

Source
pub fn string<I>(s: &'static str) -> String<I>
where I: Stream<Item = char>,
Expand description

Parses the string s

let result = string("rust")
    .parse("rust")
    .map(|x| x.0);
assert_eq!(result, Ok("rust"));