pub trait ToPhantom {
// Required method
fn to_phantom(&self) -> Type;
}Required Methods§
Sourcefn to_phantom(&self) -> Type
fn to_phantom(&self) -> Type
Creates a PhantomData based on Self.
The PhantomData will be Send and Sync.
The resulting Type will look something like:
PhantomData<(fn(&'a (), &'b ()) -> (T, U))>