Trait style::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