Skip to main content

likely

Function likely 

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

Hint the branch condition is probably true. Zero runtime cost on SBF; on host targets it maps to LLVM’s llvm.expect.i1 via core::hint::likely when available, and to an identity otherwise.