japaric-archived / linalg.rs

[INACTIVE]
Apache License 2.0
29 stars 1 forks source link

consider implementing deref betwen mut/immut pairs #48

Closed japaric closed 9 years ago

japaric commented 9 years ago

e.g. impl Deref<Col> for MutCol, other candidates:

I think this should let me cut down some implementations that are accesed via method calls: like at(), len(), slice() from the mutable version.

japaric commented 9 years ago

Not safe to do - can create immutable views from a mutable view.