Function std::intrinsics::rustc_peek[][src]

pub extern "rust-intrinsic" fn rustc_peek<T>(T) -> T
🔬 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

从函数附带的属性中获取其含义的魔术内联函数。

例如,数据流使用它来注入静态断言,以便 rustc_peek(potentially_uninitialized) 实际上会再次检查数据流确实确实计算出该数据流在控制流中未初始化。

不应在编译器外部使用此内联函数。