Function rustracer::hdrimage::parse_endianness
source · fn parse_endianness(line: &str) -> Result<ByteOrder, HdrImageErr>
Expand description
Parse image endianness from string.
If parse successes a particular variant of ByteOrder
is returned
wrapped around a std::result::Result
.
If parse fails the std::result::Result
will be an HdrImageErr
error variant.