1 2 3 4 5 6 7 8 9 10 11 12 13
use core::marker::PhantomData; pub struct StreamToBytes; pub struct StreamToString; pub struct BytesToString; pub struct BytesToStream; pub struct StreamToLines; pub struct ConvertTo<T>(pub PhantomData<T>);