Struct foxbox_taxonomy::util::Phantom [] [src]

pub struct Phantom<T> {
    // some fields omitted
}

A variant of PhantomData that supports [De]serialization

Methods

impl<T> Phantom<T>

fn new() -> Self

Trait Implementations

impl<T> Default for Phantom<T>

fn default() -> Self

impl<T> Serialize for Phantom<T>

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

impl<T> Deserialize for Phantom<T>

fn deserialize<D>(_: &mut D) -> Result<Self, D::Error> where D: Deserializer

Derived Implementations

impl<T: Eq> Eq for Phantom<T>

impl<T: Hash> Hash for Phantom<T>

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<T: PartialEq> PartialEq for Phantom<T>

fn eq(&self, __arg_0: &Phantom<T>) -> bool

fn ne(&self, __arg_0: &Phantom<T>) -> bool

impl<T: Debug> Debug for Phantom<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: Clone> Clone for Phantom<T>

fn clone(&self) -> Phantom<T>

1.0.0fn clone_from(&mut self, source: &Self)