try_read_native

Function try_read_native 

Source
pub fn try_read_native<R, W, T>(reader: &mut R) -> Result<T>
where R: Read + ?Sized, W: EndianRead, T: TryFrom<W>, <T as TryFrom<W>>::Error: Display,
Available on crate feature io-std only.
Expand description

Like read_native, but uses TryFrom<W> for fallible conversion.

Conversion errors are mapped to io::ErrorKind::InvalidData.