add trait to convert Num to u128
This commit is contained in:
parent
8f3bb2cd58
commit
14915d8f31
|
@ -29,3 +29,9 @@ impl From<u128> for Num {
|
||||||
Num { number }
|
Num { number }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Num> for u128 {
|
||||||
|
fn from(value: Num) -> Self {
|
||||||
|
value.number
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue