On Wed, Jan 29, 2014 at 5:03 PM, Vadim <[email protected]> wrote:
>
> But maybe Rust type system could grow a new type of borrow that prevents all
> object access while it is in scope, similarly to how iterators prevent
> mutation of the container being iterated?
>
> Vadim

An `&mut` borrow will prevent reads not through that borrow.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to