jwise/rust — comment on commit 5fdc90a192ab82d2508607f3266eafde5440ba4d
File: src/lib/c_vec.rs line 90
By brson:

This is mutating an immutable value. Probably t should be declared with `base: *mutable T`. But then there's no way to construct a c_vec of immutable things. This could get tricky (and ugly). It's not obvious how to make this module polymorphic over t of `*mutable T` and `*T`.

Maybe give t two variants, one for `*mutable T` and one for `*T`, which would require, at minumum, two more constructors for the mutable variants.