unlikely

Function unlikely 

Source
pub fn unlikely(b: bool) -> bool
Expand description

Returns the boolean passed to it while hinting to the compiler that it is unlikely to be true. This function brings unlikely to stable Rust.

ยงExample

use rand::prelude::*;
if unlikely(rand::random::<u64>() == 42) {
    println!("We found the meaning of life, the universe, and everything");
}