Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in interior-mutability

Difference between borrow_mut on a RefCell<X> and RefCell<&X>

How do I return an iterator that has a reference to something inside a RefCell?

Why Mutex was designed to need an Arc in Rust

Data to be determined later: interior mutability or separate HashMap?

Is there a way to make an immutable reference mutable?

Is there an alternative or way to have Rc<RefCell<X>> that restricts mutability of X?

Interior mutability abuse in API design?

A cell with interior mutability allowing arbitrary mutation actions

rust interior-mutability

How to access value in RefCell properly

How do I borrow a RefCell<HashMap>, find a key, and return a reference to the result? [duplicate]

rust interior-mutability

What is the difference between Rc<RefCell<T>> and RefCell<Rc<T>>?

Situations where Cell or RefCell is the best choice

rust interior-mutability

How do I return a reference to something inside a RefCell without breaking encapsulation?