Struct accountable_refcell::RefCell [] [src]

pub struct RefCell<T: ?Sized> { /* fields omitted */ }

A RefCell that tracks outstanding borrows and reports stack traces for dynamic borrow failures.

Methods

impl<T> RefCell<T>
[src]

[src]

Create a new RefCell value.

[src]

Discard this RefCell and return the value stored inside of it.

impl<T: ?Sized> RefCell<T>
[src]

[src]

Borrow the value stored in this cell immutably. Panics if any outstanding mutable borrows of the same cell exist.

[src]

Borrow the value stored in this cell mutably. Panics if any outstanding immutable borrows of the same cell exist.