If you use Rust with Spark/PySpark and there are issues in the Rust code, you might get Rust panic error messages.
Symptom
Error: b"thread 'main' panicked at 'index out of bounds: the len is 15 but the index is 15', src/game.rs:131:39\nnote: run with RUST_BACKTRACE=1 environment variable to display a backtrace\n"
Cause
Bug in the Rust code.
Solution
Fix the bug in the Rust code.