pub trait Deserialize: Sized {
type Error: Error + From<Error> + Send + Sync + 'static;
// Required method
fn deserialize<R: BufRead>(reader: R) -> Result<Self, Self::Error>;
}
Expand description
Define that an object can be read from a Read
object.
Required Associated Types§
Required Methods§
fn deserialize<R: BufRead>(reader: R) -> Result<Self, Self::Error>
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.