[−][src]Module heaparray::naive_rc::ref_counters
Utility structs for reference counting.
This module exists to make other reference counting structs easier to implement;
i.e. the reference counting itself and associated unsafety is handled here
so that the other reference counting structs can just call the API. Since
all functions are #[inline]
, this ends up being a zero-cost abstraction.
Structs
ArcStruct | Reference counting struct for atomic reference counts. |
RcStruct | Reference counting struct for non-atomic reference counts. |
Traits
RefCounter | Utility struct that handles reference counting. |