std::cell

Used in conjunction with shared mutable containers:

For details on using CellsRefCell, and both interior and external references, see Chapter 11, Concurrency in Rust.
  • Std::cell::BorrowError: Returned by RefCell::try_borrow
  • impl Display for BorrowError
    • fn fmt(&self, f: &mut Formatter) -> Result<(), Error>: Formats the value using the given formatter.
  • impl Debug for BorrowError
    • fn fmt(&self, f: &mut Formatter) -> Result<(), Error>: Formats the value using the given formatter.
  • impl Error for BorrowError
    • fn description(&self) -> &str: A short description of the error
    • fn cause(&self) -> Option<&Error>: The lower-level cause of this error, if any
  • std::cell::BorrowMutError: Returned by RefCell::try_borrow_mut
  • impl Display ...

Get Learning Rust now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.