Module weak_table::traits
[−]
[src]
Traits for describing strong and weak pointers and their use as elements and keys.
These traits provide mechanisms for converting between weak and strong pointers
(WeakElement) and for dereferencing strong pointers
(WeakKey). Implementations of these traits are provided for
std::rc::Weak and std::sync::Weak. If you would like to use your own pointer type
as a weak element, you need to implement WeakElement for your weak pointer type; to use it
as a weak key, implement WeakKey as well.
Traits
| WeakElement |
Interface for elements that can be stored in weak hash tables. |
| WeakKey |
Interface for elements that can act as keys in weak hash tables. |