Remix.run Logo
Cyph0n 9 hours ago

Gotcha. There is a split_at_mut method that splits a mutable slice reference into two. That doesn’t address the problem you had, but I think that’s best you can do with safe Rust.

loeg 8 hours ago | parent [-]

Yeah. It just isn't something the borrow checker natively understands.