pub fn from_buf_reader<T, R>(reader: &mut R) -> Result<T>
where
    T: DeserializeOwned,
    R: BufRead,
{
    let mut deserializer = Deserializer::from_buf_reader(reader);
    let t = T::deserialize(&mut deserializer)?;
    Ok(t)
}
/// Deserialize from reader with `BufRead` trait.
///
/// # Errors
/// Please refer to [Error](Error)
Deserialize from reader with `BufRead` trait.
Deserialize from reader with ` BufRead ` trait .
pub fn from_buf_reader<T, R>(reader: &mut R) -> Result<T>
where
    T: DeserializeOwned,
    R: BufRead,
{
    let mut deserializer = Deserializer::from_buf_reader(reader);
    let t = T::deserialize(&mut deserializer)?;
    Ok(t)
}
pub fn from_buf_reader < T , R > ( reader : & mut R ) -> Result < T > where T : DeserializeOwned , R : BufRead , { let mut deserializer = Deserializer :: from_buf_reader ( reader ) ; let t = T :: deserialize ( & mut deserializer ) ? ; Ok ( t ) }
Deserialize from reader with `BufRead` trait.
Deserialize from reader with ` BufRead ` trait .
reader
&mut R
errors
Please refer to [Error](Error)
Please refer to [ Error ] ( Error )