rust/src/libcore
Pietro Albini e6ee4e056d
Rollup merge of #53652 - oconnor663:copy_in_place, r=alexcrichton
define copy_within on slices

This is a safe wrapper around `ptr::copy`, for regions within a single slice. Previously, safe in-place copying was only available as a side effect of `Vec::drain`.

I've wanted this API a couple times in the past, and I figured I'd just whip up a PR to help discuss it. It's possible something like this exists elsewhere and I just missed it. It might also be a big enough addition to warrant an RFC, I'm not sure.
2018-09-22 09:56:24 +02:00
..
benches bench: libcore: fix build failure of any.rs benchmark (use "dyn Any") 2018-08-29 12:18:05 +02:00
char Rollup merge of #53059 - ljedrz:unneeded_returns, r=kennytm 2018-08-12 23:26:51 +02:00
fmt Rollup merge of #53636 - frewsxcv:frewsxcv-nth, r=rkruppe 2018-08-24 19:24:44 +08:00
future Cleanup and fix method resolution issue 2018-09-17 16:31:33 -07:00
hash impl PartialEq+Eq for BuildHasherDefault 2018-07-15 17:37:46 +02:00
iter fix u32 steps_between for 16-bit systems 2018-08-30 12:35:00 +02:00
num Document .0 to unpack the value from Wrapping 2018-09-08 11:35:02 -07:00
ops When closure with no arguments was expected, suggest wrapping 2018-08-15 13:05:01 -07:00
prelude Drop identity from prelude. 2018-08-19 18:36:18 +02:00
slice define copy_within on slices 2018-09-20 00:57:05 -04:00
str Auto merge of #52994 - varkor:trim_direction, r=alexcrichton 2018-09-05 23:45:08 +00:00
sync Remove #[repr(transparent)] from atomics 2018-09-05 15:41:44 -07:00
task Rename Executor trait to Spawn 2018-08-06 12:18:47 +02:00
tests add tests for copy_within 2018-09-20 02:35:32 -04:00
unicode Auto merge of #51609 - dscorbett:is_numeric, r=alexcrichton 2018-08-01 17:44:25 +00:00
alloc.rs Remove explicit returns where unnecessary 2018-08-04 14:31:03 +02:00
any.rs Enforce #![deny(bare_trait_objects)] in src/libcore 2018-07-25 10:21:41 +09:00
array.rs Revert "Stabilize the TryFrom and TryInto traits" 2018-04-20 18:10:00 +02:00
ascii.rs migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
borrow.rs Fix formatting. 2018-03-18 13:05:00 +01:00
Cargo.toml Breaking change upgrades 2018-09-04 13:22:08 -06:00
cell.rs Remove redundant field names in structs 2018-08-04 14:58:20 +02:00
clone.rs Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
cmp.rs Add another PartialEq example 2018-08-21 23:24:23 +02:00
convert.rs core::convert::identity: fix issue number to #53500 2018-08-20 09:16:56 +02:00
default.rs Fix "Quasi-quoting is inefficient" warning in incremental rustbuild. 2017-07-18 01:49:40 +08:00
ffi.rs Move std::os::raw::c_void into libcore and re-export in libstd 2018-09-14 16:19:59 +01:00
hint.rs Stabilize core::hint::unreachable_unchecked. 2018-04-16 18:29:40 +08:00
internal_macros.rs Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
intrinsics.rs Replace usages of ptr::offset with ptr::{add,sub}. 2018-08-20 07:28:34 -04:00
iter_private.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
lib.rs Move std::os::raw::c_void into libcore and re-export in libstd 2018-09-14 16:19:59 +01:00
macros.rs Spacing changes made to the example 2018-09-05 09:09:50 -04:00
marker.rs Update to a new pinning API. 2018-09-01 06:57:58 +02:00
mem.rs Clarify ManuallyDrop docs 2018-09-04 14:43:21 +02:00
nonzero.rs Address attribute naming and use Bound enum 2018-09-11 11:25:51 +02:00
option.rs Auto merge of #53877 - withoutboats:compositional-pin, r=aturon 2018-09-19 06:56:19 +00:00
panic.rs Enforce #![deny(bare_trait_objects)] in src/libcore 2018-07-25 10:21:41 +09:00
panicking.rs Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
pin.rs Cleanup Deref impls and add ?Sized bound to &mut T impls 2018-09-18 15:42:51 -07:00
ptr.rs Rollup merge of #53574 - vorner:ptr_as_ref_unchecked, r=Mark-Simulacrum 2018-08-22 17:45:41 +02:00
raw.rs Fix up various links 2017-03-20 10:10:16 -04:00
result.rs Rollup merge of #53777 - ivanbakel:result_map_or_else, r=alexcrichton 2018-09-12 12:17:25 +08:00
time.rs Rollup merge of #52813 - newpavlov:duration_mul_div_extras, r=alexcrichton 2018-09-20 21:36:16 +08:00
tuple.rs Update bootstrap compiler 2017-08-31 06:58:58 -07:00
unit.rs impl FromIterator<()> for () 2017-10-18 23:12:37 -07:00