pub trait Percentage: RuntimeNum + PerThing { }Expand description
Deterministic fixed-precision percentage / ratio for runtime arithmetic.
Extends RuntimeNum for ordering, compact encoding, and bounded
persistence.
The [PerThing] bound provides fixed-point fractional behavior with a
compile-time accuracy factor, enabling precise percentage-style operations
(fees, weights, slashing ratios, interest rates) without floating-point
semantics.
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.