title: How to extract two integers from a string?
body: <p>How do I extract two <code>i32</code>s from a single line of input in Rust? In Python I can read two <code>int</code>s like:</p>
  
  <pre class="lang-python prettyprint-override"><code>a, b = map(int, input().split()) #  "2 3"  =&gt;  a=2 and b=3
  </code></pre>
  
  <p>As of Rust 1.3.0, I can run the following to read one i32:</p>
  
  <pre class="lang-rust prettyprint-override"><code>let mut s = String::new();
  std::io::stdin().read_line(&amp;mut s).ok().expect("read_line panic");
  let n: i32 = s.trim().parse().ok().expect("parse panic");
  </code></pre>