pub trait MultiplierUpdate: Convert<Multiplier, Multiplier> {
// Required methods
fn min() -> Multiplier;
fn max() -> Multiplier;
fn target() -> Perquintill;
fn variability() -> Multiplier;
}
Expand description
Something that can convert the current multiplier to the next one.
Required Methods§
Sourcefn min() -> Multiplier
fn min() -> Multiplier
Minimum multiplier. Any outcome of the convert
function should be at least this.
Sourcefn max() -> Multiplier
fn max() -> Multiplier
Maximum multiplier. Any outcome of the convert
function should be less or equal this.
Sourcefn variability() -> Multiplier
fn variability() -> Multiplier
Variability factor
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.