{"crate":{"id":"replace_with","name":"replace_with","updated_at":"2025-05-20T16:43:43.608397Z","versions":[1571745,272623,263490,183360,173343,141778,119819,116906,116889],"keywords":["mutability"],"categories":["rust-patterns"],"badges":[],"created_at":"2018-11-08T20:55:34.665629Z","downloads":24362021,"recent_downloads":5561538,"default_version":"0.1.8","num_versions":9,"yanked":false,"max_version":"0.1.8","newest_version":"0.1.8","max_stable_version":"0.1.8","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.\n","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with","repository":"https://github.com/alecmocatta/replace_with","links":{"version_downloads":"/api/v1/crates/replace_with/downloads","versions":null,"owners":"/api/v1/crates/replace_with/owners","owner_team":"/api/v1/crates/replace_with/owner_team","owner_user":"/api/v1/crates/replace_with/owner_user","reverse_dependencies":"/api/v1/crates/replace_with/reverse_dependencies"},"exact_match":false,"trustpub_only":false},"versions":[{"id":1571745,"crate":"replace_with","num":"0.1.8","dl_path":"/api/v1/crates/replace_with/0.1.8/download","readme_path":"/api/v1/crates/replace_with/0.1.8/readme","updated_at":"2025-05-20T16:43:43.608397Z","created_at":"2025-05-20T16:43:43.608397Z","downloads":14160980,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":false,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.8/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.8/downloads","authors":"/api/v1/crates/replace_with/0.1.8/authors"},"crate_size":11251,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"publish","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2025-05-20T16:43:43.608397Z"}],"checksum":"51743d3e274e2b18df81c4dc6caf8a5b8e15dbe799e0dca05c7617380094e884","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.\n","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":245,"comment_lines":24,"files":1}},"total_code_lines":245,"total_comment_lines":24}},{"id":272623,"crate":"replace_with","num":"0.1.7","dl_path":"/api/v1/crates/replace_with/0.1.7/download","readme_path":"/api/v1/crates/replace_with/0.1.7/readme","updated_at":"2025-05-20T16:48:31.536806Z","created_at":"2020-08-14T09:14:40.809780Z","downloads":10147975,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.7/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.7/downloads","authors":"/api/v1/crates/replace_with/0.1.7/authors"},"crate_size":10935,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"publish","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:14:40.809780Z"},{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2025-05-20T16:48:31.608476Z"}],"checksum":"e3a8614ee435691de62bcffcf4a66d91b3594bf1428a5722e79103249a095690","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":187,"comment_lines":19,"files":1}},"total_code_lines":187,"total_comment_lines":19}},{"id":263490,"crate":"replace_with","num":"0.1.6","dl_path":"/api/v1/crates/replace_with/0.1.6/download","readme_path":"/api/v1/crates/replace_with/0.1.6/readme","updated_at":"2020-08-14T09:18:38.503858Z","created_at":"2020-07-18T10:23:02.368203Z","downloads":5744,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.6/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.6/downloads","authors":"/api/v1/crates/replace_with/0.1.6/authors"},"crate_size":10940,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"publish","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-07-18T10:23:02.368203Z"},{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:30.794803Z"}],"checksum":"4f28a63b34e971384e2eaf3f513924e7af0012444c52662df4d4583015bfafaa","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":187,"comment_lines":19,"files":1}},"total_code_lines":187,"total_comment_lines":19}},{"id":183360,"crate":"replace_with","num":"0.1.5","dl_path":"/api/v1/crates/replace_with/0.1.5/download","readme_path":"/api/v1/crates/replace_with/0.1.5/readme","updated_at":"2020-08-14T09:18:34.274046Z","created_at":"2019-10-17T20:30:11.548857Z","downloads":25742,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.5/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.5/downloads","authors":"/api/v1/crates/replace_with/0.1.5/authors"},"crate_size":10800,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:26.816633Z"}],"checksum":"e76286384e3eeae2f41cd5622841781b466a5de4a6be5c8756056e843833e7aa","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.5","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":182,"comment_lines":19,"files":1}},"total_code_lines":182,"total_comment_lines":19}},{"id":173343,"crate":"replace_with","num":"0.1.4","dl_path":"/api/v1/crates/replace_with/0.1.4/download","readme_path":"/api/v1/crates/replace_with/0.1.4/readme","updated_at":"2020-08-14T09:18:30.337698Z","created_at":"2019-09-01T23:37:09.394826Z","downloads":9888,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.4/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.4/downloads","authors":"/api/v1/crates/replace_with/0.1.4/authors"},"crate_size":10346,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:22.587039Z"}],"checksum":"275aab26dc1cf819e688ce391308daa036fbee65112f22a1b574a3b882421db8","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.4","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":135,"comment_lines":19,"files":1}},"total_code_lines":135,"total_comment_lines":19}},{"id":141778,"crate":"replace_with","num":"0.1.3","dl_path":"/api/v1/crates/replace_with/0.1.3/download","readme_path":"/api/v1/crates/replace_with/0.1.3/readme","updated_at":"2020-08-14T09:18:26.140710Z","created_at":"2019-03-27T19:06:23.431938Z","downloads":2549,"features":{"default":["std"],"nightly":[],"panic_abort":[],"std":[]},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.3/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.3/downloads","authors":"/api/v1/crates/replace_with/0.1.3/authors"},"crate_size":9932,"published_by":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:20.330608Z"}],"checksum":"d452cb854920e997dadc024fd1799b89af56a15afe50eda25069d8171a00dfee","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.3","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":124,"comment_lines":17,"files":1}},"total_code_lines":124,"total_comment_lines":17}},{"id":119819,"crate":"replace_with","num":"0.1.2","dl_path":"/api/v1/crates/replace_with/0.1.2/download","readme_path":"/api/v1/crates/replace_with/0.1.2/readme","updated_at":"2020-08-14T09:18:22.177088Z","created_at":"2018-11-27T16:54:35.888282Z","downloads":3321,"features":{},"yanked":true,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.2/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.2/downloads","authors":"/api/v1/crates/replace_with/0.1.2/authors"},"crate_size":8915,"published_by":null,"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:17.961268Z"}],"checksum":"8bfa78e82f3dd9827b36545b1af6fef4474b19fbbb6cd74443a9498fc0816ddb","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.2","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":97,"comment_lines":17,"files":1}},"total_code_lines":97,"total_comment_lines":17}},{"id":116906,"crate":"replace_with","num":"0.1.1","dl_path":"/api/v1/crates/replace_with/0.1.1/download","readme_path":"/api/v1/crates/replace_with/0.1.1/readme","updated_at":"2020-08-14T09:18:18.134970Z","created_at":"2018-11-08T22:50:06.293107Z","downloads":3383,"features":{},"yanked":true,"yank_message":null,"lib_links":null,"license":"Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.1/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.1/downloads","authors":"/api/v1/crates/replace_with/0.1.1/authors"},"crate_size":8519,"published_by":null,"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:15.528759Z"}],"checksum":"a58ed5744819ea5d308e789a187bbd26a2cba88c16fc70926acdf7b3842c3928","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.1","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":97,"comment_lines":17,"files":1}},"total_code_lines":97,"total_comment_lines":17}},{"id":116889,"crate":"replace_with","num":"0.1.0","dl_path":"/api/v1/crates/replace_with/0.1.0/download","readme_path":"/api/v1/crates/replace_with/0.1.0/readme","updated_at":"2020-08-14T09:18:11.853553Z","created_at":"2018-11-08T20:55:34.665629Z","downloads":2353,"features":{},"yanked":true,"yank_message":null,"lib_links":null,"license":"Apache-2.0","links":{"dependencies":"/api/v1/crates/replace_with/0.1.0/dependencies","version_downloads":"/api/v1/crates/replace_with/0.1.0/downloads","authors":"/api/v1/crates/replace_with/0.1.0/authors"},"crate_size":8513,"published_by":null,"audit_actions":[{"action":"yank","user":{"id":3893,"login":"alecmocatta","name":"Alec Mocatta","avatar":"https://avatars.githubusercontent.com/u/1136246?v=4","url":"https://github.com/alecmocatta","github_username_matches":true,"created_at":"2011-10-18T17:04:54Z"},"time":"2020-08-14T09:18:10.751206Z"}],"checksum":"e05914f2ca5b791b38d2f0aeebe6db5518ae5fd8b15660f0c152a55db987334e","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","homepage":"https://github.com/alecmocatta/replace_with","documentation":"https://docs.rs/replace_with/0.1.0","repository":"https://github.com/alecmocatta/replace_with","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":96,"comment_lines":17,"files":1}},"total_code_lines":96,"total_comment_lines":17}}],"keywords":[{"id":"mutability","keyword":"mutability","created_at":"2017-01-17T02:42:19.825987Z","crates_cnt":20}],"categories":[{"id":"rust-patterns","category":"Rust patterns","slug":"rust-patterns","description":"Shared solutions for particular situations specific to programming in Rust.","created_at":"2017-01-17T19:13:05.112025Z","crates_cnt":4293}]}