1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use {Parcel, Error, Settings};
use std::marker::PhantomData;

use std::io::prelude::*;

impl<T> Parcel for PhantomData<T>
{
    const TYPE_NAME: &'static str = "PhantomData<T>";

    fn read(_: &mut Read,
            _: &Settings) -> Result<Self, Error> {
        Ok(PhantomData)
    }

    fn write(&self, _: &mut Write,
             _: &Settings) -> Result<(), Error> {
        Ok(())
    }
}