Trait to_phantom::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§