[rust-dev] strings in sets/maps

Simon Sapin simon.sapin at exyr.org
Fri Jun 6 14:59:53 PDT 2014


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


More information about the Rust-dev mailing list