Trait polkadot_sdk_frame::traits::Scale
pub trait Scale<Other> {
type Output;
// Required methods
fn mul(self, other: Other) -> Self::Output;
fn div(self, other: Other) -> Self::Output;
fn rem(self, other: Other) -> Self::Output;
}
Expand description
Multiply and divide by a number that isn’t necessarily the same type. Basically just the same
as Mul
and Div
except it can be used for all basic numeric types.
Required Associated Types§
type Output
type Output
The output type of the product of self
and Other
.