pub trait Zero {
// Required methods
fn zero() -> Self;
fn is_zero(x: &Self) -> Choice;
}Expand description
Type that has zero value (additive identity)
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".