]> git.lizzy.rs Git - rust.git/commit
core: Inherit non-allocating slice functionality
authorAlex Crichton <alex@alexcrichton.com>
Thu, 1 May 2014 05:54:25 +0000 (22:54 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 7 May 2014 15:15:58 +0000 (08:15 -0700)
commit91ede1f09a9f60c06b91583b3102482c249f31ab
treead767f7063447ba190702e5f83c5968ea4f8c1e9
parentbe0a11729e5226a758261ba4f095978ef2105837
core: Inherit non-allocating slice functionality

This commit adds a new trait, MutableVectorAllocating, which represents
functions on vectors which can allocate.

This is another extension trait to slices which should be removed once a lang
item exists for the ~ allocation.
src/libcore/lib.rs
src/libcore/slice.rs [new file with mode: 0644]
src/libserialize/json.rs
src/libstd/fmt/mod.rs
src/libstd/prelude.rs
src/libstd/slice.rs
src/libstd/vec.rs