pub fn quirc_strerror(err: DecodeError) -> &'static str {
    match err {
        DecodeError::InvalidGridSize => "Invalid grid size",
        DecodeError::InvalidVersion => "Invalid version",
        DecodeError::FormatEcc => "Format data ECC failure",
        DecodeError::DataEcc => "ECC failure",
        DecodeError::UnknownDataType => "Unknown data type",
        DecodeError::DataOverflow => "Data overflow",
        DecodeError::DataUnderflow => "Data underflow",
    }
}
/// Return a string error message for an error code.
Return a string error message for an error code.
Return a string error message for an error code .
pub fn quirc_strerror(err: DecodeError) -> &'static str {
    match err {
        DecodeError::InvalidGridSize => "Invalid grid size",
        DecodeError::InvalidVersion => "Invalid version",
        DecodeError::FormatEcc => "Format data ECC failure",
        DecodeError::DataEcc => "ECC failure",
        DecodeError::UnknownDataType => "Unknown data type",
        DecodeError::DataOverflow => "Data overflow",
        DecodeError::DataUnderflow => "Data underflow",
    }
}
pub fn quirc_strerror ( err : DecodeError ) -> & ' static str { match err { DecodeError :: InvalidGridSize => " " , DecodeError :: InvalidVersion => " " , DecodeError :: FormatEcc => " " , DecodeError :: DataEcc => " " , DecodeError :: UnknownDataType => " " , DecodeError :: DataOverflow => " " , DecodeError :: DataUnderflow => " " , } }
Return a string error message for an error code.
Return a string error message for an error code .
err
DecodeError
err
DecodeError