I have an enum that looks a bit like this:
pub enum VmObj {
...
vm_arr_int {
mark: u64,
length: i32,
elements: Vec<i32>,
},
...
}
It's being used to implement mutable storage of integers (in the Vec) for a simple interpreter I'm writing to teach myself Rust but I'm having problems reasoning about what needs to be a reference.
What does the actual layout of a Vec look like in memory?