Comment by GrantMoyer
Comment by GrantMoyer 8 days ago
This only addresses a small point in the article, but you can shrink capacity to size before passing a Vec to C, then assume capacity = size when you need to free the Vec.
Comment by GrantMoyer 8 days ago
This only addresses a small point in the article, but you can shrink capacity to size before passing a Vec to C, then assume capacity = size when you need to free the Vec.