pub trait FromIO {
// Required methods
fn read_from(reader: &mut impl Read) -> Result<Self>
where Self: Sized;
fn write_to(&self, writer: &mut impl Write) -> Result<()>;
}Expand description
Read Self from io::Read or write Self to io::Write.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.