likely

Function likely 

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

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

ยงExample

use rand::prelude::*;
if likely(rand::random::<u64>() > 0) {
    println!("It's nonzero!");
}