Function combine::char::string [] [src]

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

Parses the string s.

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