Function std::intrinsics::assert_inhabited[][src]

pub const unsafe extern "rust-intrinsic" fn assert_inhabited<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,或者什么也不做。

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