Wrappers around references, boxes or Arcs.
OwningRefwith even further erasure of the owner.
Rc<RefCell<T>>in just a few bytes of storage, and poisoning support.
Arc<Spinlock<T>>- the thread-safe version of the above.
RMBA: Wrap a
Arc<T>within the size of a single pointer.
Bx and Bxm: Boxes without DerefMove.
This is somewhat like an
Type aliases for arc.
An alternative to
Type aliases for an rc with 1 byte of overhead.
Type aliases for an rc with 2 bytes of overhead.
Type aliases for an rc with 4 bytes of overhead.
Typedefs for an rc with 8 bytes of overhead.
Typedefs for an rc with 16 bytes of overhead.
If you need your own rc with custom overhead, you can invoke this macro for your own type (which is normally a newtype around an integer).
A simple wrapper around Box to avoid DerefMove.
A simple wrapper around Box to avoid DerefMove. Like Bx, but also allows mutable access to the interior of the box.