pub trait PercentageVariance {
// Required methods
fn delta(&self, percentage: i32) -> Self;
fn jitter_percentage(&self, percentage: f64) -> Self;
}Expand description
Percentage amount value variator(s).
Required Methods§
fn delta(&self, percentage: i32) -> Self
👎Deprecated since 0.3.11:
Use jitter_percentage instead.
Sourcefn jitter_percentage(&self, percentage: f64) -> Self
fn jitter_percentage(&self, percentage: f64) -> Self
Take a number and alter it by up to (or less, of course) ±X%.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".