Struct lrs::share::RefCell

A container with interior mutability for non-Copy types.

Syntax

struct RefCell<T> {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new RefCell.

Methods

ReceiverNameDescription
&selfborrow

Borrows the object immutably or aborts if the object is borrowed mutably.

&selfborrow_mut

Borrows the object mutably or aborts if the object is borrowed.

&selfstatus

Returns the borrow-status of the object.

Trait implementations

NameDescription
Send

Objects whose ownership can be moved from one thread to another.