pub trait Zero: Sized + Add<Self, Output = Self> {
// Required methods
fn zero() -> Self;
fn is_zero(&self) -> bool;
// Provided method
fn set_zero(&mut self) { ... }
}
Expand description
Required Methods§
Provided 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.