Trait style::values::specified::percentage::ToPercentage
source · pub trait ToPercentage {
// Required method
fn to_percentage(&self) -> CSSFloat;
// Provided method
fn is_calc(&self) -> bool { ... }
}
Expand description
Turns the percentage into a plain float.
Required Methods§
sourcefn to_percentage(&self) -> CSSFloat
fn to_percentage(&self) -> CSSFloat
Turns the percentage into a plain float.