{"id":17299882,"url":"https://github.com/twmb/slice-copy","last_synced_at":"2025-06-22T06:04:47.751Z","repository":{"id":57667635,"uuid":"120994249","full_name":"twmb/slice-copy","owner":"twmb","description":"Go style copying for slices in Rust","archived":false,"fork":false,"pushed_at":"2023-01-04T06:00:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T10:07:27.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twmb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-10T07:22:03.000Z","updated_at":"2022-04-27T19:04:56.000Z","dependencies_parsed_at":"2023-02-02T00:16:07.888Z","dependency_job_id":null,"html_url":"https://github.com/twmb/slice-copy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twmb/slice-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Fslice-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Fslice-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Fslice-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Fslice-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twmb","download_url":"https://codeload.github.com/twmb/slice-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Fslice-copy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261244016,"owners_count":23129640,"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","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":[],"created_at":"2024-10-15T11:24:20.220Z","updated_at":"2025-06-22T06:04:42.735Z","avatar_url":"https://github.com/twmb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"slice-copy\n==========\n\n[![Build Status](https://travis-ci.org/twmb/slice-copy.svg?branch=master)](https://travis-ci.org/twmb/slice-copy)  [![Crates.io](https://img.shields.io/crates/v/slice-copy.svg)](https://crates.io/crates/slice-copy) [![Documentation](https://docs.rs/slice-copy/badge.svg)](https://docs.rs/slice-copy/)\n\nGo style copying for slices. For times where you would rather use the amount\ncopied to adjust your slices as opposed to determining the amount to copy,\nadjusting your slices, and finally copying.\n\n```rust\nuse slice_copy::copy;\n\nlet mut l = b\"hello\".to_vec();\nlet r = b\"goodbye\".to_vec();\n\nlet n = copy(\u0026mut l, \u0026r);\n\nassert_eq!(n, 5);\nassert_eq!(l, b\"goodb\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwmb%2Fslice-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwmb%2Fslice-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwmb%2Fslice-copy/lists"}