pub trait Deserialize: Sized {
type Error: Error + From<Error> + Send + Sync + 'static;
fn deserialize<R: BufRead>(reader: R) -> Result<Self, Self::Error>;
}Expand description
Define that an object can be read from a Read object.
pub trait Deserialize: Sized {
type Error: Error + From<Error> + Send + Sync + 'static;
fn deserialize<R: BufRead>(reader: R) -> Result<Self, Self::Error>;
}Define that an object can be read from a Read object.