about summary refs log tree commit diff
path: root/src/libcore/array.rs
AgeCommit message (Collapse)AuthorLines
2015-01-02core: use assoc types in `Deref[Mut]`Jorge Aparicio-2/+2
2015-01-02More falloutNick Cameron-19/+19
2014-12-30Stabilize cmpAaron Turon-4/+6
This patch marks `PartialEq`, `Eq`, `PartialOrd`, and `Ord` as `#[stable]`, as well as the majorify of manual implementaitons of these traits. The traits match the [reform RFC](https://github.com/rust-lang/rfcs/pull/439). Along the way, two changes are made: * The recently-added type parameters for `Ord` and `Eq` are removed. These were mistakenly added while adding them to `PartialOrd` and `PartialEq`, but they don't make sense given the laws that are required for (and use cases for) `Ord` and `Eq`. * More explicit laws are added for `PartialEq` and `PartialOrd`, connecting them to their associated mathematical concepts. In the future, many of the impls should be generalized; see since generalizing later is not a breaking change. [breaking-change]
2014-12-20Stabilize cloneAaron Turon-2/+1
This patch marks `clone` stable, as well as the `Clone` trait, but leaves `clone_from` unstable. The latter will be decided by the beta. The patch also marks most manual implementations of `Clone` as stable, except where the APIs are otherwise deprecated or where there is uncertainty about providing `Clone`.
2014-12-03Overload the `==` operatorJorge Aparicio-3/+24
- String == &str == CowString - Vec == &[T] == &mut [T] == [T, ..N] == CowVec - InternedString == &str
2014-11-14Add `Show` and `Clone` trait to arraysTobias Bucher-8/+22
Due to not being able to parametrize over array sizes, `Clone` is only implemented for element types that are `Copy`able.
2014-11-05Remove incorrect doc annotation, mark experimental since we haven't ↵Niko Matsakis-5/+1
discussed in an API meeting
2014-11-05Add impls of the comparison operators for fixed-length arrays of lengths ↵Niko Matsakis-0/+87
0...32 and repair various cases where slices and fixed-length arrays were being compared.