rust_cc

Module weak

Source
Available on crate feature weak-ptrs only.
Expand description

Non-owning Weak pointers to an allocation.

The downgrade method can be used on a Cc to create a non-owning Weak pointer. A Weak pointer can be upgraded to a Cc, but this will return None if the allocation has already been deallocated.

Structsยง

  • A non-owning pointer to the managed allocation.