[−][src]Crate triomphe
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-mutableArcwhich can be converted to a regulartriomphe::Arclatertriomphe::OffsetArccan be used transparently from C++ code and is compatible with (and can be converted to/from)triomphe::Arctriomphe::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 anArcpinned on the stack (and can instead be a pointer from C++, or anOffsetArc). Additionally, this helps avoid pointer-chasing.triomphe::Archas can be constructed for dynamically-sized types viafrom_header_and_itertriomphe::ThinArcprovides thin-pointerArcs to dynamically sized typestriomphe::ArcUnionis union of twotriomphe:Arcs which fits inside one word of memory
Structs
| Arc | An atomically reference counted shared pointer |
| ArcBorrow | A "borrowed |
| ArcUnion | A tagged union that can represent |
| HeaderSlice | Structure to allow Arc-managing some fixed-sized data and a variably-sized slice in a single allocation. |
| HeaderWithLength | Header data with an inline length. Consumers that use HeaderWithLength as the Header type in HeaderSlice can take advantage of ThinArc. |
| OffsetArc | An |
| ThinArc | A "thin" |
| UniqueArc | An |
Enums
| ArcUnionBorrow | This represents a borrow of an |