MCPcopy Index your code
hub / github.com/Manishearth/triomphe

github.com/Manishearth/triomphe @v0.1.16

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.16 ↗ · + Follow
269 symbols 467 edges 11 files 44 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Triomphe

Fork of Arc. This has the following advantages over std::sync::Arc:

  • triomphe::Arc doesn'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::UniqueArc allows one to construct a temporarily-mutable Arc which can be converted to a regular triomphe::Arc later
  • triomphe::OffsetArc can be used transparently from C++ code and is compatible with (and can be converted to/from) triomphe::Arc
  • triomphe::ArcBorrow is 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 Arc pinned on the stack (and can instead be a pointer from C++, or an OffsetArc). Additionally, this helps avoid pointer-chasing.
  • triomphe::Arc can be constructed for dynamically-sized types via from_header_and_iter
  • triomphe::ThinArc provides thin-pointer Arcs to dynamically sized types
  • triomphe::ArcUnion is 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.

Extension points exported contracts — how you extend this code

AnInteger (Interface)
(no doc) [1 implementers]
src/arc.rs

Core symbols most depended-on inside this repo

clone
called by 20
src/arc.rs
as_ptr
called by 18
src/arc.rs
ptr
called by 14
src/arc.rs
len
called by 13
src/iterator_as_exact_size_iterator.rs
clone
called by 12
src/thin_arc.rs
borrow
called by 8
src/arc_union.rs
inner
called by 8
src/arc.rs
shareable
called by 6
src/unique_arc.rs

Shape

Method 184
Function 65
Class 18
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/arc.rs95 symbols
src/thin_arc.rs45 symbols
src/header.rs39 symbols
src/unique_arc.rs34 symbols
src/arc_union.rs16 symbols
src/offset_arc.rs15 symbols
src/arc_borrow.rs12 symbols
src/iterator_as_exact_size_iterator.rs5 symbols
src/lib.rs3 symbols
src/arc_swap_support.rs3 symbols
src/alloc_error.rs2 symbols

For agents

$ claude mcp add triomphe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact