It should be possible to derive GodotConvert with godot(transparent) on structs that have PhantomData and generics.
For example:
#[derive(GodotConvert)]
#[godot(transparent)]
pub struct Id<T>(u32, PhantomData<T>);
This struct is basically a newtype around u32 with some extra rust typing, and so it makes sense that this should be representable in Godot.
It should be possible to derive
GodotConvertwithgodot(transparent)on structs that havePhantomDataand generics.For example:
This struct is basically a newtype around
u32with some extra rust typing, and so it makes sense that this should be representable in Godot.