pub fn read(stream: &mut impl Read) -> Result<Option<(Header, Record)>, Error>
Reads the next MRT record in the stream.
This function does not panic.
Any IO error will be returned while reading from the stream.
If an ill-formatted stream provided behavior will be undefined.
This function does not make use of unsafe code.