Trait Zeroed

Source
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§

Source

fn zeroed() -> 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.

Implementations on Foreign Types§

Source§

impl Zeroed for POINT

Source§

fn zeroed() -> Self

Source§

impl Zeroed for SIZE

Source§

fn zeroed() -> Self

Implementors§