Closed ISibboI closed 5 years ago
Digging further, this seems to be caused by not being able to specify dyn Variable
without specifying NativeType
.
Typetag makes it possible to serialize and deserialize dyn Trait
for object-safe traits, but as you noticed, for your trait dyn Variable
cannot exist because different impls of the trait would have different signatures for Variable::native_value.
I have a trait like so:
It does not compile as it asks me to specify the associtated type
NativeType
. What does this mean?