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

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2025-08-26 17:11:37 +00:00
parent 0f85292e6f
commit 1c19bbec4e
2 changed files with 98 additions and 0 deletions

View file

@ -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 {