3 ms·
Superficially, you'd wrap the enum in a struct, and put the PhantomData there. I'm not sure that makes sense for this example though.
by dwattttt 5y ago
Superficially, you'd wrap the enum in a struct, and put the PhantomData there. I'm not sure that makes sense for this example though.