Module core_extensions::phantom
source · [−]phantom
only.Expand description
PhantomData
-related items.
Structs
A pair of PhantomData<T>
and T
.
useful for infering the type of the value from a PhantomData
.
A pair of PhantomData<fn() -> T>
and T
.
useful for infering the type of the value from a PhantomData
.
Contains PhantomData<fn() -> T>
,
required to return a PhantomData<fn() -> T>
from the
as_covariant_phantom
const function.
Traits
For getting a PhantomData<Self>
with a variety of lifetime variances.
Functions
Gets the PhantomData<fn() -> T>
of the passed in T
.
Gets the PhantomData
of the passed in type.
Type Definitions
Type alias for a contravariant PhantomData
, without drop check.
Type alias for a variant PhantomData
, without drop check.
Type alias for an invariant PhantomData
.
Type alias for an PhantomData
with an invariant lifetime.
Type alias for a variant PhantomData
with drop check.