Expand description
Fork of triomphe, which is a fork of Arc. This has the following advantages over std::sync::Arc:
elysees::Arcdoesn’t support weak references: we save space by excluding the weak reference count, and we don’t do extra read-modify-update operations to handle the possibility of weak references.elysees::ArcBoxallows one to construct a temporarily-mutableArcwhich can be converted to a regularelysees::Arclaterelysees::ArcBorrowis functionally similar to&elysees::Arc<T>, however in memory it’s simply a (non-owned) pointer to the innerArc. This helps avoid pointer-chasing.elysees::ArcRefis a union of anArcand anArcBorrow
Structs§
- Arc
- An atomically reference counted shared pointer
- ArcBorrow
- A “borrowed
Arc”. This is essentially a reference to anArcInner<T> - ArcBox
- An
Arcthat is known to be uniquely owned - ArcInner
- The object allocated by an Arc
- ArcRef
- An atomically reference counted shared pointer, which may hold either exactly 0 references (in which case it is analogous to an
ArcBorrow) or 1 (in which case it is analogous to anArc)