pub trait Zero {
// Required method
fn zero() -> Self;
}Expand description
Trait defining class method zero() : T that creates an instance of
the implementing type that is conceptually (or actually) zero.
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.