Currently, there are two variants. One that accepts a BasicValue and one that accepts a BasicValueEnum array and builds an aggregate return.
This makes it awkward to use in cases where the return value is stored as a BasicValueEnum in between, because there doesn't seem a simple way to get back to the BasicValue accept for matching all value cases.
Maybe you could just add an AsBasicValueRef trait and allow both BasicValue and BasicValueEnum?
Currently, there are two variants. One that accepts a BasicValue and one that accepts a BasicValueEnum array and builds an aggregate return.
This makes it awkward to use in cases where the return value is stored as a BasicValueEnum in between, because there doesn't seem a simple way to get back to the BasicValue accept for matching all value cases.
Maybe you could just add an AsBasicValueRef trait and allow both BasicValue and BasicValueEnum?