{"id":67395,"library":"cheap-clone","title":"Cheap Clone","description":"A trait which indicates that such type can be cloned cheaply.","status":"active","version":"0.3.0","language":"rust","source_language":null,"source_url":"https://github.com/al8n/layer0","tags":["trait","clone","optimization","zero-cost"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncheap-clone = \"0.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cheap-clone","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CheapClone","correct":"use cheap_clone::CheapClone;"}],"quickstart":{"code":"use cheap_clone::CheapClone;\n\nfn main() {\n    let x: &str = \"hello\";\n    let y = x.cheap_clone();\n    println!(\"{}\", y);\n}","lang":"rust","description":"Clones a cheaply-clonable type using CheapClone."},"warnings":[],"env_vars":null,"search_vec":"'cheap':1 'cheapli':13 'clone':2,12,15 'cost':19 'indic':6 'optim':16 'trait':4,14 'type':9 'zero':18 'zero-cost':17","created_at":"2026-06-17T17:36:40.862362+00:00","updated_at":"2026-06-17T17:36:40.862362+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/al8n/layer0/tree/main/cheap-clone","github":"https://github.com/al8n/layer0","docs":"https://docs.rs/cheap-clone/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}