pub trait IsZero {
// Required method
fn is_zero(&self) -> bool;
}Expand description
Trait that allows you to check whether value is zero
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".