3 ms·
The rules around const don't compose with pointers inside structs, which makes this more complicated than you'd like. (I guess, just one struct for mutable and
by kzrdude 4y ago
The rules around const don't compose with pointers inside structs, which makes this more complicated than you'd like. (I guess, just one struct for mutable and one for view of the string would work.)