-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
questionFurther information is requestedFurther information is requested
Description
This isn't an issue but a question:
I have a struct something like
#[derive(Encode, Decode)]
struct Foo
{
.. members
blah: Box<[Box<dyn T>]>,
}
my current approach is to have a 'serializing' version of this struct like:
struct DynType { type_id: u64, size: u64 }
struct FooFile
{
.. members
blah: &[DynType],
blah_data: &[u8],
}
where blah's values are stored in blah_data and as bitcode-encoded values linearly written into a byte buf
Is this a reasonable approach? Is there a more efficient approach?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested