style

Trait ZeroNoPercent

Source
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§

Source

fn is_zero_no_percent(&self) -> bool

So, 0px should return true, but 0% or 1px should return false

Implementors§

Source§

impl ZeroNoPercent for style::values::specified::length::LengthPercentage

Source§

impl ZeroNoPercent for style::values::computed::length_percentage::LengthPercentage