Function read

Source
pub fn read(stream: &mut impl Read) -> Result<Option<(Header, Record)>, Error>
Expand description

Reads the next MRT record in the stream.

§Panics

This function does not panic.

§Errors

Any IO error will be returned while reading from the stream. If an ill-formatted stream provided behavior will be undefined.

§Safety

This function does not make use of unsafe code.