feat(rust): add marshalling for Hhex
This commit is contained in:
parent
b748cba310
commit
1ec6d2df5b
1 changed files with 6 additions and 0 deletions
|
@ -272,6 +272,12 @@ impl<RW> ToHaskell<RW> for Hhex {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<RW> FromHaskell<RW> for Hhex {
|
||||||
|
fn from_haskell(buf: &mut &[u8], _tag: PhantomData<RW>) -> Result<Self> {
|
||||||
|
let x = Hhex::deserialize(buf)?;
|
||||||
|
Ok(x)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, BorshSerialize, BorshDeserialize)]
|
#[derive(Debug, BorshSerialize, BorshDeserialize)]
|
||||||
pub struct Haction {
|
pub struct Haction {
|
||||||
|
|
Loading…
Reference in a new issue