pub trait Zeroed {
// Required method
fn zeroed() -> Self;
}
Expand description
For structs that benefit from an alternative to default()
to be able to write more expressive code.
Required Methods§
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.