WIP: serialization/deserialization of datum in VM
Some checks failed
per-push tests / build (push) Failing after 3m26s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
Some checks failed
per-push tests / build (push) Failing after 3m26s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
0f85292e6f
commit
1c19bbec4e
2 changed files with 98 additions and 0 deletions
|
|
@ -175,6 +175,19 @@ impl Clone for Datum {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<Vec<u8>> for Datum {
|
||||
fn into(self) -> Vec<u8> {
|
||||
unimplemented!("")
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<&[u8]> for Datum {
|
||||
type Error = &str;
|
||||
fn try_from(value: &[u8]) -> Result<Self, Self::Error> {
|
||||
unimplemented!("")
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
pub struct Cons(pub Option<Gc<Datum>>, pub Option<Gc<Datum>>);
|
||||
|
||||
|
|
@ -293,6 +306,18 @@ impl Index<usize> for Cons {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<Vec<u8>> for Cons {
|
||||
fn into(self) -> Vec<u8> {
|
||||
unimplemented!("")
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<&[u8]> for Cons {
|
||||
type Error = &str;
|
||||
fn try_from(value: &[u8]) -> Result<Self, Self::Error> {
|
||||
unimplemented!("")
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue