The &const
Rust previously had doesn’t solve the problem, since you can’t use fn find(&const self, key: uint) -> &const X
to get either a &
out (if called on an &
receiver) or a &mut
(for a &mut
receiver), you always get a &const
out.
The &const
Rust previously had doesn’t solve the problem, since you can’t use fn find(&const self, key: uint) -> &const X
to get either a &
out (if called on an &
receiver) or a &mut
(for a &mut
receiver), you always get a &const
out.