Rust requires the programmer to
manually design data structures and
code algorithms in a way that doesn't trigger borrower checker compile errors.
There is nothing automatic out of it.
Write Rust code, compile error if done incorrectly, manually fix the data structure or algorithm root cause, loop.