Uses old Rust 2015
|new 0.1.3||Jun 10, 2021|
|0.1.2||Jan 10, 2021|
|0.1.1||May 20, 2019|
|0.1.0||Dec 5, 2018|
#26 in Concurrency
2,541 downloads per month
Used in 34 crates (2 directly)
Fork of Arc. This has the following advantages over std::sync::Arc:
triomphe::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.
triomphe::UniqueArcallows one to construct a temporarily-mutable
Arcwhich can be converted to a regular
triomphe::OffsetArccan be used transparently from C++ code and is compatible with (and can be converted to/from)
triomphe::ArcBorrowis functionally similar to
&triomphe::Arc<T>, however in memory it's simply
&T. This makes it more flexible for FFI; the source of the borrow need not be an
Arcpinned on the stack (and can instead be a pointer from C++, or an
OffsetArc). Additionally, this helps avoid pointer-chasing.
triomphe::Archas can be constructed for dynamically-sized types via
Arcs to dynamically sized types
triomphe::ArcUnionis union of two
triomphe:Arcs which fits inside one word of memory
This crate is a version of
servo_arc meant for general community use.