pub trait ZeroNoPercent {
// Required method
fn is_zero_no_percent(&self) -> bool;
}Expand description
A trait implementing a function to tell if the number is zero without a percent
Required Methods§
Sourcefn is_zero_no_percent(&self) -> bool
fn is_zero_no_percent(&self) -> bool
So, 0px should return true, but 0% or 1px should return false
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".