Skip to main content

CheapClone

Derive Macro CheapClone 

Source
#[derive(CheapClone)]
Expand description

Derive macro for generating cheap clone implementations.

This macro generates a cheap_clone method that clones internal Arc fields without cloning the entire struct. Useful for types that are cheap to share via Arc but expensive to clone directly.