title: How can I get a slice from an Option in Rust?
body: <p>I have an <code>Option</code> in Rust, and I need to use it in a function that accepts a slice. How do I get a slice from an <code>Option</code> where <code>Some(x)</code>'s slice has one element and <code>None</code>'s has zero elements?</p>