Thanks to visit codestin.com
Credit goes to lib.rs

#rc #clone-on-write #arc

arc-cow

ArcCow is a Rust smart pointer that combines the best features of Cow (clone-on-write) and Arc (atomic reference counting) to provide efficient, flexible data handling

1 unstable release

Uses new Rust 2024

0.1.0 Jul 4, 2025

#2273 in Rust patterns

22 downloads per month
Used in omni-llm-kit

MIT/Apache

17KB
364 lines

ArcCow is a Rust smart pointer that combines the best features of Cow (clone-on-write) and Arc (atomic reference counting) to provide efficient, flexible data handling.

The ArcCow type represents either:

  • A borrowed reference data (zero-allocation)
  • A owned value with atomic reference counting

The code is originally copied from zed.

No runtime deps