pub trait Percent {
// Required method
fn percent(self) -> f64;
}Expand description
A number that can be a percentage. pct(80) and pct(80.0) are the same.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".