title: Unpack a splitn into a tuple in Rust?
body: <p>I want to do the following in Rust:</p>
  
  <pre><code>let (command, options) = message.splitn(2, ' ');
  </code></pre>
  
  <p>This can't be done because of:</p>
  
  <pre><code>expected struct `std::str::SplitN`, found tuple
  </code></pre>
  
  <p>The split will always be two and I like having named variables.
  The message may not contain a space character.</p>