light-clone
Compile-time enforcement of cheap O(1) cloning in Rust
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install light-clone?โผ
Run `npx skills add SIRHAMY/light-clone --all -g -y` in your terminal to install all skills in this repository globally.
What problem does LightClone solve?โผ
It guarantees at compile time that cloning a type is always O(1), rejecting fields like String or Vec that silently trigger expensive deep copies.
Which Rust types work with LightClone?โผ
Arc, Rc, Copy primitives, tuples, Option, Result, and persistent collections from the im, imbl, and rpds crates all implement LightClone.
Does LightClone add runtime overhead?โผ
No. The .light_clone() and .lc() methods compile to identical code as .clone(), so there is zero runtime cost.
What does the rust-style skill cover?โผ
It guides your AI agent to write immutable, functional-style Rust using Arc for shared state, trait-based services, and vertical slice architecture.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core