title: Find the item in an array with the largest property
body: <p>I have a struct like this</p>
  
  <pre><code>struct Point {
      pub x: i32,
      pub y: i32,
  }
  
  impl Point {
      fn new(x: i32, y: i32) -&gt; Self {
          Point { x, y }
      }
  }
  </code></pre>
  
  <p>And an array like this</p>
  
  <pre><code>[Point::new(1, 1), Point::new(4, 2), Point::new(2, 9)];
  </code></pre>
  
  <p>How do I pull the item with largest <code>point.x</code> from this array?</p>