mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Add FixedPointOperand blanket implementation (#14634)
* bound `Balance` to `FixedPointOperand` * ".git/.scripts/commands/fmt/fmt.sh" * clean up code * Apply suggestions from code review Co-authored-by: Gavin Wood <gavin@parity.io> * wip * add blanket `FixedPointOperand` impl * update nis CurrencyBalance * remove CheckedNeg bound --------- Co-authored-by: command-bot <> Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
@@ -59,6 +59,7 @@ pub trait BaseArithmetic:
|
||||
+ CheckedMul
|
||||
+ CheckedDiv
|
||||
+ CheckedRem
|
||||
+ CheckedNeg
|
||||
+ Ensure
|
||||
+ Saturating
|
||||
+ PartialOrd<Self>
|
||||
@@ -116,6 +117,7 @@ impl<
|
||||
+ CheckedMul
|
||||
+ CheckedDiv
|
||||
+ CheckedRem
|
||||
+ CheckedNeg
|
||||
+ Ensure
|
||||
+ Saturating
|
||||
+ PartialOrd<Self>
|
||||
|
||||
Reference in New Issue
Block a user