about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-07-30std: Remove macro in vec that's only used onceblake2-ppc-17/+12
2013-07-30std: Implement Extendable for hashmap, str and trieblake2-ppc-21/+58
2013-07-30std: Remove RandomAccessIterator impl for VecMutIteratorblake2-ppc-4/+4
The RandomAccessIterator implementation is not sound for the mutable vec iterator, and makes it easy to duplicate &mut element pointers.
2013-07-30std: Tests for RandomAccessIteratorsblake2-ppc-0/+87
2013-07-30std: Implement RandomAccessIterator for iterator adaptorsblake2-ppc-18/+142
Implement RAI where possible for iterator adaptors such as Map, Enumerate, Skip, Take, Zip, Cycle (all of the requiring that the adapted iterator also implements RAI).
2013-07-30iterator: implement size_hint() for FlatMapblake2-ppc-0/+10
2013-07-30iterator: implement DoubleEndedIterator for FlatMapblake2-ppc-5/+44
2013-07-30Improve std::num module description, and fix some formattingBrendan Zabarauskas-21/+4
2013-07-30Add some missing method wrappers to std::numBrendan Zabarauskas-2/+24
2013-07-29auto merge of #8090 : blake2-ppc/rust/iterator-adaptor-names, r=pcwaltonbors-98/+97
Drop the "Iterator" suffix for the the structs in std::iterator. Filter, Zip, Chain etc. are shorter type names for when iterator pipelines need their types written out in full in return value types, so it's easier to read and write. the iterator module already forms enough namespace.
2013-07-29auto merge of #8109 : blake2-ppc/rust/extern-fn-clone, r=thestingerbors-0/+58
Implement Clone and DeepClone for functions with 0 to 8 arguments. `extern fn()` is implicitly copyable so it's simple, except there is no way to implement it generically over #n function arguments. Allows deriving of Clone on structs containing `extern "Rust" fn`.
2013-07-29Adding an initial description to vec.rs.Steve Klabnik-1/+47
Let's explain more of what this module is about, not just 'vectors.'
2013-07-29Optimize try_recv to not require the two context switches when data is ↵Ben Blum-31/+34
available.
2013-07-29Remove ChanOneHack/PortOneHack extra allocationBen Blum-50/+30
2013-07-29std: Implement Clone and DeepClone for extern "Rust" fnblake2-ppc-0/+58
Implement Clone and DeepClone for functions with 0 to 8 arguments.
2013-07-29auto merge of #8085 : mrordinaire/rust/percent-p, r=huonwbors-0/+7
pull request for #8011
2013-07-29Added %p directive to fmt!, which expects *T as argumentDo Nhat Minh-0/+7
2013-07-29std: Rename Iterator adaptor types to drop the -Iterator suffixblake2-ppc-98/+97
Drop the "Iterator" suffix for the the structs in std::iterator. Filter, Zip, Chain etc. are shorter type names for when iterator pipelines need their types written out in full in return value types, so it's easier to read and write. the iterator module already forms enough namespace.
2013-07-29std: Implement FromIterator for ~strblake2-ppc-1/+23
FromIterator initially only implemented for Iterator<char>, which is the type of the main iterator.
2013-07-28Refactored vec and str iterators to remove prefixesjmgrosen-87/+87
2013-07-28ReaderUtil::each_byte shouldn't include EOF byte -- Issue #5056Stepan Koltsov-4/+38
2013-07-28auto merge of #8087 : Aatch/rust/atomics, r=huonwbors-0/+57
Adds a fence operation to close #8061 Also adds static initializers to for atomic types. Since the fields are private, you aren't able to have `static mut` variables that are an atomic type. Each atomic type's initializer starts at a 0-value (so unset for `AtomicFlag` and false for `AtomicBool`).
2013-07-28Fix spelling errorsJames Miller-2/+2
2013-07-28Add static initializers for atomicsJames Miller-5/+26
2013-07-28Add an atomic fence intrinsicJames Miller-0/+36
2013-07-28auto merge of #8069 : erickt/rust/maikklein, r=ericktbors-388/+342
Good evening, This is a superset of @MaikKlein's #7969 commit, that I've fixed up to compile. I had a couple commits I wanted to do on top of @MaikKlein's work that I didn't want to bitrot.
2013-07-27std: cleanup imports in result::testsErick Tryzelaar-8/+6
2013-07-27std and rustc: cleanup uses of result methodsErick Tryzelaar-27/+25
2013-07-27core: correct the casing of result::{Ok,Err} in the docsErick Tryzelaar-59/+57
2013-07-27std: Put the option tests into a tests submoduleErick Tryzelaar-105/+111
2013-07-27std: fix the casing of option::{Some,None} in the docsErick Tryzelaar-6/+6
2013-07-27to_either + fixesErick Tryzelaar-45/+49
2013-07-27cleanup .map and .map_errErick Tryzelaar-40/+33
2013-07-27cleanup .get and .get_errmaikklein-36/+29
2013-07-27cleanup .chain and .chain_err + fixing other filesmaikklein-68/+41
2013-07-27cleanup .unwrap and .unwrap_err fixing io testsErick Tryzelaar-23/+16
2013-07-27cleanup .iter and .iter_errErick Tryzelaar-47/+48
2013-07-27cleanup get_refErick Tryzelaar-17/+14
2013-07-27Fix nits.Steven Stewart-Gallus-9/+7
2013-07-27Change concurrency primitives to standard naming conventionsSteven Stewart-Gallus-70/+72
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
2013-07-27auto merge of #8076 : omasanori/rust/cleanup, r=huonwbors-5/+0
A cleanup suggested on #7922.
2013-07-27auto merge of #7864 : brson/rust/start-on-main-thread, r=brsonbors-10/+61
Applications that need to use the GUI can override start and set up the runtime using this function.
2013-07-27std::rt: Add start_on_main_thread functionBrian Anderson-10/+61
Applications that need to use the GUI can override start and set up the runtime using this function.
2013-07-27auto merge of #8074 : thestinger/rust/iterator, r=cmrbors-66/+98
d7c9bb4 r=alexcrichton 7ae17e0 r=huonw
2013-07-27iterator: add an Extendable traitDaniel Micay-1/+18
2013-07-27vec: replace some `as_mut_buf` with `to_mut_ptr`Daniel Micay-12/+10
2013-07-27Remove dummy type parameters from iterator adaptorsblake2-ppc-51/+43
With the recent fixes to method resolution, we can now remove the dummy type parameters used as crutches in the iterator module. For example, the zip adaptor type is just ZipIterator<T, U> now.
2013-07-27vec: add mut_slice_{to,from}Daniel Micay-0/+23
Closes #8066
2013-07-27make RandomAccessIterator inherit from IteratorDaniel Micay-2/+4
2013-07-27auto merge of #8036 : sfackler/rust/container-impls, r=msullivanbors-53/+12
A couple of implementations of Container::is_empty weren't exactly self.len() == 0 so I left them alone (e.g. Treemap).