Function spectrusty_formats::ay::read_ay

source ·
pub fn read_ay<R: Read>(rd: R) -> Result<PinAyFile>
Expand description

Reads data from rd parses data and returns a pinned AyFile owning data on success.

Errors

When there was a parse error returns Err with AyParseError wrapped in io::Error with io::ErrorKind::InvalidData. To get to the inner AyParseError you need either to downcast it yourself or use one of the convenient IoErrorExt methods.