Rust Memory-allocation Resources