title: How to split a string into the first character and the rest?
body: <p>This is the code I currently have:</p>
  <pre><code>fn split_first_char(s: &amp;str) -&gt; Option&lt;(char, &amp;str)&gt; {
      let mut char_indices = s.char_indices();
      let (_, c) = char_indices.next()?;
      let i = match char_indices.next() {
          Some((i, _)) =&gt; i,
          None =&gt; s.len(),
      };
      Some((c, s.split_at(i).1))
  }
  </code></pre>
  <p>Is there an easier or built-in way to do the same?</p>