Understanding Rust slices
Recently I was passing ownership of a Rust array to a C function from a Box<[T]> and found that I actually didn’t know whether my code would lead to a memory leak.This lead me down a rabbit hole to understand how exactly slices work in Rust. The problem Copying a Rust array to C is […]