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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.