-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharithm.rs
66 lines (55 loc) · 1.7 KB
/
arithm.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Rust language amplification library providing multiple generic trait
// implementations, type wrappers, derive macros and other language enhancements
//
// Written in 2014 by
// Andrew Poelstra <[email protected]>
// Updated in 2020-2024 by
// Dr. Maxim Orlovsky <[email protected]>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the MIT License
// along with this software.
// If not, see <https://opensource.org/licenses/MIT>.
pub trait DivEuclid {}
pub trait RemEuclid {}
pub trait DivRem {}
pub trait DivRemEuclid {}
pub trait CheckedNeg {}
pub trait WrappingNeg {}
pub trait SaturatingNeg {}
pub trait CheckedInc {}
pub trait WrappingInc {}
pub trait SaturatingInc {}
pub trait OverflowingInc {}
pub trait CheckedIncAssign {}
pub trait WrappingIncAssign {}
pub trait SaturatingIncAssign {}
pub trait OverflowingIncAssign {}
pub trait CheckedAdd {}
pub trait CheckedDec {}
pub trait CheckedSub {}
pub trait CheckedMul {}
pub trait CheckedDiv {}
pub trait CheckedRem {}
pub trait CheckedAddAssign {}
pub trait CheckedDecAssign {}
pub trait CheckedSubAssign {}
pub trait CheckedMulAssign {}
pub trait CheckedDivAssign {}
pub trait CheckedRemAssign {}
pub trait WrappingDiv {}
pub trait SaturatingDiv {}
pub trait WrappingRem {}
pub trait OverflowingRem {}
pub trait WrappingDivEuclid {}
pub trait OverflowingDivEuclid {}
pub trait WrappingRemEuclid {}
pub trait OverflowingRemEuclid {}
pub trait CheckedShl {}
pub trait CyclicShl {}
pub trait SaturatingShl {}
pub trait OverflowingShl {}