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