Function std::intrinsics::unlikely[][src]

pub const extern "rust-intrinsic" fn unlikely(b: bool) -> bool
🔬 This is a nightly-only experimental API. (core_intrinsics)

intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library

Expand description

提示编译器分支条件可能为 false。 返回传递给它的值。

除与 if 语句一起使用外,其他任何使用都可能无效。

请注意,与大多数内联函数不同,这对调用是安全的; 它不需要 unsafe 块。 因此,实现不得要求用户维护任何安全不可变变量。

此内联函数没有稳定的对应对象。