Crate reffers [] [src]

Wrappers around references, boxes or Arcs.

Features:

  • rc::Strong/Weak/Ref/RefMut: An Rc<RefCell<T>> in just a few bytes of storage, and poisoning support.

  • ARef: OwningRef with even further erasure of the owner.

  • RMBA: Wrap a &T, &mut T, Box<T> or Arc<T> within the size of a single pointer.

  • Bx and Bxm: Boxes without DerefMove.

Reexports

pub use aref::ARef;
pub use rmba::RMBA;

Modules

aref
rc

An alternative to Rc<RefCell<T>>, with less memory overhead and poisoning support.

rmba

Structs

Bx

A simple wrapper around Box to avoid DerefMove.

Bxm

A simple wrapper around Box to avoid DerefMove. Like Bx, but also allows mutable access to the interior of the box.