about summary refs log tree commit diff
path: root/src/libstd/vec_ng.rs
AgeCommit message (Collapse)AuthorLines
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1353/+0
Closes #12771
2014-03-20rename std::vec -> std::sliceDaniel Micay-2/+2
Closes #12702
2014-03-18Docify std::vec_ngSteven Fackler-30/+608
I also removed a couple of methods that were silly and added sort.
2014-03-18Make method Vec::remove() publicJorge Aparicio-1/+1
2014-03-16Add method Vec<T>::as_mut_ptr()Cadence Marseille-4/+7
2014-03-14std: render the vec_ng docs.Huon Wilson-2/+4
These are wildly incomplete, but having something there is better than nothing, e.g. so that people know it exists, and many of the functions behaviour can be guessed from the name or by checking the source: it's knowing they exist at all that's the hard part.
2014-03-13auto merge of #12238 : ktt3ja/rust/lifetime-error-msg, r=nikomatsakisbors-0/+29
For the following code snippet: ```rust struct Foo { bar: int } fn foo1(x: &Foo) -> &int { &x.bar } ``` This PR generates the following error message: ```rust test.rs:2:1: 4:2 note: consider using an explicit lifetime parameter as shown: fn foo1<'a>(x: &'a Foo) -> &'a int test.rs:2 fn foo1(x: &Foo) -> &int { test.rs:3 &x.bar test.rs:4 } test.rs:3:5: 3:11 error: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements test.rs:3 &x.bar ^~~~~~ ``` Currently it does not support methods.
2014-03-13auto merge of #12845 : eddyb/rust/vec-no-drop-flag, r=thestingerbors-0/+50
2014-03-12Vec: remove the drop flag to make it no larger than (*T, uint, uint).Eduard Burtescu-0/+50
2014-03-12Add shift and remove methods for VecKiet Tran-0/+29
2014-03-12Port partition method from ~[T] to Vec<T>, for use early-late lifetime code.Felix S. Klock II-0/+20
2014-03-11Add an ItemModifier syntax extension typeSteven Fackler-0/+15
Where ItemDecorator creates new items given a single item, ItemModifier alters the tagged item in place. The expansion rules for this are a bit weird, but I think are the most reasonable option available. When an item is expanded, all ItemModifier attributes are stripped from it and the item is folded through all ItemModifiers. At that point, the process repeats until there are no ItemModifiers in the new item.
2014-03-08Incorporated review feedback atop pcwalton's original patches.Felix S. Klock II-11/+9
(Original PR was #12716; feedback was provided by thestinger and me.)
2014-03-08libstd: Add some more functionality to Vec<T>Patrick Walton-0/+131
2014-03-07create a sensible comparison trait hierarchyDaniel Micay-4/+11
* `Ord` inherits from `Eq` * `TotalOrd` inherits from `TotalEq` * `TotalOrd` inherits from `Ord` * `TotalEq` inherits from `Eq` This is a partial implementation of #12517.
2014-03-04auto merge of #12697 : thestinger/rust/vec, r=huonwbors-0/+1
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
2014-03-04mark the `map` method on Vec<T> as deprecatedDaniel Micay-0/+1
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
2014-03-04std: add reserve_additional and an Extendable impl to Vec.Huon Wilson-2/+66
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-0/+27
2014-03-01libstd: Add some functionality to `Vec<T>`Patrick Walton-1/+29
2014-02-24std: Add Vec.reserve for rounding-up reservation.Huon Wilson-1/+8
`.reserve_exact` can cause pathological O(n^2) behaviour, so providing a `.reserve` that ensures that capacity doubles (if you step 1, 2, ..., n) is more efficient. cc #11949
2014-02-24std: make .swap_remove return Option<T>.Huon Wilson-6/+4
This is one of the last raw "indexing" method on vectors that returns `T` instead of the Option.
2014-02-23std: Move raw to std::rawBrian Anderson-1/+1
Issue #1457
2014-02-21libstd: Implement some convenience methods on vectorsPatrick Walton-9/+169
2014-02-15std: clean up ptr a bitCorey Richardson-6/+6
2014-02-13remove duplicate function from std::ptr (is_null, is_not_null, offset, ↵JeremyLetang-2/+3
mut_offset)
2014-02-09std: Add move_val_init to mem. Replace direct intrinsic usageBrian Anderson-2/+1
2014-02-07Removed prelude::* from libstd files.chromatic-2/+6
This replaces the imports from the prelude with the re-exported symbols.
2014-01-22add new vector representation as a libraryDaniel Micay-0/+231