Crate weak_list

Source

Structs§

AllocHashSet
AllocMem
ArcRef
LinearSearch
To check if the list contains a node, iterate over all the nodes in the list until we find the target one. O(1) space but O(n) time.
WeakList
Doubly linked, heterogeneous, list of Arc-like nodes that functions as a least recently used cache.
WeakRef

Traits§

WeakListNodeSet
WeakList storage, needs to be able to tell whether a node belongs to this list.

Functions§

arc_dyn_any_to_arc_ref_t
Try to downcast the result of WeakList::pop_lru back into an ArcRef<T>. Returns the passed Arc back in case of error.

Type Aliases§

WeakListHashSet
Default WeakList storage: a hashset of pointer values. O(n) space but O(1) time.