//! Dynamic data storage and transfer types for use in [`io`] // Dynamic data type #[derive(Clone, Debug)] pub enum Data { String(String), Int(i32), } impl From for Data { fn from(value: String) -> Self { Self::String(value) } } impl From for Data { fn from(value: i32) -> Self { Self::Int(value) } }