[][src]Struct phantom_type::PhantomType

pub struct PhantomType<T: ?Sized>(_);

A PhantomData analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with PhantomData.

Trait Implementations

impl<T: ?Sized> Clone for PhantomType<T>[src]

impl<T: ?Sized> Copy for PhantomType<T>[src]

impl<T: ?Sized> Debug for PhantomType<T>[src]

impl<T: ?Sized> Default for PhantomType<T>[src]

impl<T: ?Sized> Eq for PhantomType<T>[src]

impl<T: ?Sized> Hash for PhantomType<T>[src]

impl<T: ?Sized> Ord for PhantomType<T>[src]

impl<T: ?Sized> PartialEq<PhantomType<T>> for PhantomType<T>[src]

impl<T: ?Sized> PartialOrd<PhantomType<T>> for PhantomType<T>[src]

impl<T: ?Sized> RefUnwindSafe for PhantomType<T>[src]

impl<T: ?Sized> Send for PhantomType<T>[src]

impl<T: ?Sized> Sync for PhantomType<T>[src]

impl<T: ?Sized> Unpin for PhantomType<T>[src]

impl<T: ?Sized> UnwindSafe for PhantomType<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.