Menu

📰
0

do i really need PhantomData

Reddit r/rust·u/zylosophe·about 1 month ago
#mCiUe8l1
Reading 0:00
15s threshold

do i really need PhantomData ok so i got the trait Foo, and the trait Bar . if i make a wrapper for a Bar: `` struct Wrapper >(B); `` doesn't work because "F is unused". do i \ have\ to add a PhantomData to "use" F?

Anonymous readers can preview up to 1024 characters here. Log in to unlock the full article once ingest succeeds.
Read More