Skip to content

[deprecated] a single-function Rust crate providing a safe wrapper around ptr::copy for efficient copying within slices

License

Notifications You must be signed in to change notification settings

oconnor663/copy_in_place

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy_in_place

RepoDocsCrate

This crate provides a single function, a safe wrapper around ptr::copy for efficient copying within slices.

DEPRECATED: As of Rust 1.37, the standard library provides the equivalent copy_within method on slices. This crate is deprecated, and it won't receive any further updates or fixes.

Examples

Copying four bytes within a slice:

let mut bytes = *b"Hello, World!";

copy_in_place(&mut bytes, 1..5, 8);

assert_eq!(&bytes, b"Hello, Wello!");

About

[deprecated] a single-function Rust crate providing a safe wrapper around ptr::copy for efficient copying within slices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages