On 06/06/2014 16:34, Diggory Hardy wrote:
Related: how to do this in a match?

let s = "abc".to_owned();
match s {
    "abc" => ...

match s.as_slice() { // ...

--
Simon Sapin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to