Replies: 1 comment
-
It would need to use #[derive(AsnType)]
struct Foo {
#[rasn(sequence(field_1, field_2))]
inner: (u32, u32),
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been messing around with a library for some work stuff and had an interesting idea that would utilize tuple types, though they would need the
Encode
andDecode
impls for this to work. my thought is that the tuples would be encoded as aSEQUENCE
type, similar to arrays andVec
s, but allowing for heterogeneous types in the sequence. thoughts? only complication I think would be perhaps in the decoding step since right now thedecode_sequence_of
API expects a single type and thedecode_sequence
seems somewhat complicated for something like this (and I didn't quite understand exactly what the purpose of some of the parameters and args was).Beta Was this translation helpful? Give feedback.
All reactions