Adding Decimals work!!

This commit is contained in:
Jared Ramirez 2021-06-24 11:15:52 -07:00
parent 4d6e5a1a4f
commit 0827123c88
8 changed files with 108 additions and 71 deletions

View file

@ -39,26 +39,6 @@ pub enum RocOrder {
// );
//}
#[repr(C)]
pub struct RocDec {
pub num: i128,
}
impl fmt::Debug for RocDec {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
// RocList { num: 123 }
f.debug_struct("RocDec").field("num", &self.num).finish()
}
}
impl PartialEq for RocDec {
fn eq(&self, other: &Self) -> bool {
self.num == other.num
}
}
impl Eq for RocDec {}
#[repr(C)]
pub struct RocList<T> {
elements: *mut T,