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.