Function std::intrinsics::assert_zero_valid[][src]

pub unsafe extern "rust-intrinsic" fn assert_zero_valid<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

如果 T 不允许零初始化,则永远不能执行的不安全函数的守卫: 这将静态 panic,或者什么也不做。

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