{"id":30213728,"url":"https://github.com/aweirddev/moving","last_synced_at":"2026-01-20T17:36:51.201Z","repository":{"id":304458911,"uuid":"1018886297","full_name":"AWeirdDev/moving","owner":"AWeirdDev","description":"Make elements of an array or a vector movable.","archived":false,"fork":false,"pushed_at":"2025-07-13T09:18:44.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T09:26:15.733Z","etag":null,"topics":["ownership","rust-ownership"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/moving","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AWeirdDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-13T09:09:48.000Z","updated_at":"2025-07-13T09:18:47.000Z","dependencies_parsed_at":"2025-07-13T09:26:19.705Z","dependency_job_id":"7017a3e2-64f0-4b34-8781-d1825ba7570f","html_url":"https://github.com/AWeirdDev/moving","commit_stats":null,"previous_names":["aweirddev/moving"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AWeirdDev/moving","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fmoving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fmoving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fmoving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fmoving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWeirdDev","download_url":"https://codeload.github.com/AWeirdDev/moving/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fmoving/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270330911,"owners_count":24565889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ownership","rust-ownership"],"created_at":"2025-08-13T23:16:23.290Z","updated_at":"2026-01-20T17:36:51.195Z","avatar_url":"https://github.com/AWeirdDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 `moving`\n\nMake elements of an array or a vector movable with some simple magic.\n\n## Vec -\u003e array\n\nMove elements of a vector an array.\n```rust\nuse moving::move_vec_to_array;\n\nlet v = vec![0, 1, 2, 3, 4];  // 5 items\nlet arr = move_vec_to_array::\u003ci16, 5\u003e(v).unwrap();\n\nassert_eq!(arr, [0, 1, 2, 3, 4]);\n```\n\n## Movable vectors\n\nTo make elements of an array or a vector movable, while the size is unknown, use `movable`:\n```rust\nuse moving::{ MovableVec, movable };\n\nlet v = vec![0, 1, 2, 3, 4];  // 5 items\nlet arr = [0, 1, 2, 3, 4];\n\nlet mvv: MovableVec\u003ci32\u003e = movable(v);\nlet mvv_arr: MovableVec\u003ci32\u003e = movable(arr);\n```\n\nAlternatively, you can use `ToMovable`:\n```rust\nuse moving::ToMovable;\n\nsome_vec.to_movable();\nsome_arr.to_movalbe();\n```\n\n## Movable arrays\n\nTo make elements of an array or a vector movable, while the size is known, use `nmovable` (notice the prefix \"n\"):\n```rust\nuse moving::{ MovableArray, nmovable};\n\nlet v = vec![0, 1, 2, 3, 4];  // 5 items\nlet arr = [0, 1, 2, 3, 4];\n\nlet mvv: MovableArray\u003ci32, 5\u003e = nmovable(v).unwrap();\nlet mvv_arr: MovableArray\u003ci32, 5\u003e = nmovable(arr).unwrap();\n```\n\nAlternatively, you can use `ToNMovable`:\n```rust\nuse moving::ToNMovable;\n\nsome_vec.to_nmovable()?;\nsome_arr.to_nmovable()?;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Fmoving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweirddev%2Fmoving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Fmoving/lists"}