We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125fbbd commit 50d5af6Copy full SHA for 50d5af6
src/bigint.rs
@@ -82,6 +82,13 @@ impl Clone for BigInt {
82
}
83
84
85
+impl From<&BigInt> for BigInt {
86
+ #[inline]
87
+ fn from(value: &BigInt) -> Self {
88
+ value.clone()
89
+ }
90
+}
91
+
92
impl hash::Hash for BigInt {
93
#[inline]
94
fn hash<H: hash::Hasher>(&self, state: &mut H) {
src/biguint.rs
@@ -55,6 +55,13 @@ impl Clone for BigUint {
55
56
57
58
+impl From<&BigUint> for BigUint {
59
60
+ fn from(value: &BigUint) -> Self {
61
62
63
64
65
impl hash::Hash for BigUint {
66
67
0 commit comments