An issue exists in the arrayfire crate prior to 3.6.0 for Rust. Addition of the repr() attribute to an enum is mishandled, leading to memory corruption.
arrayfire arrayfire