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