mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Adding Decimals work!!
This commit is contained in:
parent
4d6e5a1a4f
commit
0827123c88
8 changed files with 108 additions and 71 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue