#[doc(hidden)] pub trait AssertNotZeroSized: Sized {
const _CONDITION: usize = _;
const _CHECK: &'static str = _;
// Provided method
fn assert_not_zero_sized(&self) { ... }
}
Expand description
Guarantee T
is not zero sized at compile time.
Provided Associated Constants§
Provided Methods§
fn assert_not_zero_sized(&self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.