Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 1018
Why use PhantomData<T> in a struct that doesn't store a T?
A
To allocate space for T
B
PhantomData stores T on the heap
C
To tell the compiler the struct logically owns or relates to T, affecting variance, drop check and Send/Sync
D
To make the struct Copy