Trait ToPhantom

Source
pub trait ToPhantom {
    // Required method
    fn to_phantom(&self) -> Type;
}

Required Methods§

Source

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))>

Implementations on Foreign Types§

Source§

impl ToPhantom for Generics

Implementors§