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§

source

type Error: Error + From<Error> + Send + Sync + 'static

Required Methods§

source

fn deserialize<R: BufRead>(reader: R) -> Result<Self, Self::Error>

Object Safety§

This trait is not object safe.

Implementors§