pub fn select<'a, 'b>(
    image_a: &'a mut Image<'b>,
    image_b: &'a mut Image<'b>,
) -> Option<&'a mut Image<'b>> {
    match (image_a.verify_bootable(), image_b.verify_bootable()) {
        (true, true) => {
            if image_a > image_b {
                Some(image_a)
            } else {
                Some(image_b)
            }
        }
        (true, false) => Some(image_a),
        (false, true) => Some(image_b),
        (false, false) => None,
    }
}
/// Returns the newer, bootable image of the given images.
///
/// This first determines which of the images are bootable, updating the image validity if
/// necessary (see [`Image::verify_bootable()`][verify_bootable] for details). If both image are
/// bootable, the newer of the two is returned. Otherwise, the only bootable image is returned, if
/// any.
///
/// [verify_bootable]: struct.Image.html#method.verify_bootable
Returns the newer, bootable image of the given images.
This first determines which of the images are bootable, updating the image validity if
necessary `][verify_bootable] for details). If both image are
bootable, the newer of the two is returned. Otherwise, the only bootable image is returned, if
any.


Returns the newer bootable image of the given images . This first determines which of the images are bootable updating the image validity if necessary ` ] [ verify_bootable ] for details ) . If both image are bootable the newer of the two is returned . Otherwise the only bootable image is returned if any .
pub fn select<'a, 'b>(
    image_a: &'a mut Image<'b>,
    image_b: &'a mut Image<'b>,
) -> Option<&'a mut Image<'b>> {
    match (image_a.verify_bootable(), image_b.verify_bootable()) {
        (true, true) => {
            if image_a > image_b {
                Some(image_a)
            } else {
                Some(image_b)
            }
        }
        (true, false) => Some(image_a),
        (false, true) => Some(image_b),
        (false, false) => None,
    }
}
pub fn select < ' a , ' b > ( image_a : & ' a mut Image < ' b > , image_b : & ' a mut Image < ' b > , ) -> Option < & ' a mut Image < ' b > > { match ( image_a . verify_bootable ( ) , image_b . verify_bootable ( ) ) { ( true , true ) => { if image_a > image_b { Some ( image_a ) } else { Some ( image_b ) } } ( true , false ) => Some ( image_a ) , ( false , true ) => Some ( image_b ) , ( false , false ) => None , } }
Returns the newer, bootable image of the given images.
Returns the newer bootable image of the given images .
image_a
&'a mut Image<'b>
image_b
&'a mut Image<'b>
image_a
&'a mut Image<'b>
image_b
&'a mut Image<'b>