Add decoding for bytestring, string, char, bool, and filler

This commit is contained in:
Kasey White
2022-05-30 02:32:39 -04:00
parent 9d8afee3d2
commit 4fb508e3b2
4 changed files with 163 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ impl Encode for Program {
}
impl<'b> Decode<'b> for Program {
fn decode(_d: &mut Decoder<'b>) -> Result<Self, String> {
fn decode(_d: &mut Decoder) -> Result<Self, String> {
todo!()
}
}
@@ -91,7 +91,6 @@ impl Encode for Term {
Term::Error => {
encode_term_tag(6, e)?;
todo!()
}
Term::Builtin(builtin) => {
encode_term_tag(7, e)?;
@@ -105,7 +104,7 @@ impl Encode for Term {
}
impl<'b> Decode<'b> for Term {
fn decode(_d: &mut Decoder<'b>) -> Result<Self, String> {
fn decode(_d: &mut Decoder) -> Result<Self, String> {
todo!()
}
}
@@ -147,7 +146,7 @@ impl Encode for &Constant {
}
impl<'b> Decode<'b> for Constant {
fn decode(_d: &mut Decoder<'b>) -> Result<Self, String> {
fn decode(_d: &mut Decoder) -> Result<Self, String> {
todo!()
}
}
@@ -161,7 +160,7 @@ impl Encode for DefaultFunction {
}
impl<'b> Decode<'b> for DefaultFunction {
fn decode(_d: &mut Decoder<'b>) -> Result<Self, String> {
fn decode(_d: &mut Decoder) -> Result<Self, String> {
todo!()
}
}