Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

add CheckedRem #9412

Merged
2 commits merged into from
Jul 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions primitives/arithmetic/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
use codec::HasCompact;
pub use integer_sqrt::IntegerSquareRoot;
pub use num_traits::{
checked_pow, Bounded, CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedShl, CheckedShr,
CheckedSub, One, Signed, Unsigned, Zero,
checked_pow, Bounded, CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl,
CheckedShr, CheckedSub, One, Signed, Unsigned, Zero,
};
use sp_std::{
self,
Expand Down Expand Up @@ -55,6 +55,7 @@ pub trait BaseArithmetic:
+ CheckedSub
+ CheckedMul
+ CheckedDiv
+ CheckedRem
+ Saturating
+ PartialOrd<Self>
+ Ord
Expand Down