No, no copy function provided and the docs suggest they shouldn't be copied as changing the struct entries is the only way to change the index entry. See the link below for an issue about the memory management of index entries.