A container with interior mutability for non-Copy types.
struct RefCell<T> {
/* private fields */
}| Name | Description |
|---|---|
| new | Creates a new |
| Receiver | Name | Description |
|---|---|---|
&self | borrow | Borrows the object immutably or aborts if the object is borrowed mutably. |
&self | borrow_mut | Borrows the object mutably or aborts if the object is borrowed. |
&self | status | Returns the borrow-status of the object. |
| Name | Description |
|---|---|
| Send | Objects whose ownership can be moved from one thread to another. |