[][src]Function mrt_rs::read

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

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.