mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
checkpoint
This commit is contained in:
parent
3c8dbce72e
commit
5e4f43e1d8
12 changed files with 296 additions and 109 deletions
|
@ -1,5 +1,5 @@
|
|||
//! Provides Rust representations of Roc data structures.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
// #![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
use arrayvec::ArrayString;
|
||||
|
@ -227,10 +227,19 @@ impl<T, E> Drop for RocResult<T, E> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[repr(C)]
|
||||
pub struct RocDec([u8; 16]);
|
||||
|
||||
impl Debug for RocDec {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_tuple("RocDec")
|
||||
.field(&self.0)
|
||||
.field(&self.to_str())
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
impl RocDec {
|
||||
pub const MIN: Self = Self(i128::MIN.to_ne_bytes());
|
||||
pub const MAX: Self = Self(i128::MAX.to_ne_bytes());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue