about summary refs log tree commit diff
path: root/src/libextra/bitv.rs
AgeCommit message (Collapse)AuthorLines
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-3/+3
cc #5898
2013-08-07std: Fix for-range loops that can use iteratorsblake2-ppc-8/+9
Fix inappropriate for-range loops to use for-iterator constructs (or other appropriate solution) instead.
2013-08-06std: Remove uint::iterate, replaced by `range`blake2-ppc-4/+3
2013-08-06extra: Simplify the bitv iterators using Repeatblake2-ppc-44/+19
2013-08-03remove obsolete `foreach` keywordDaniel Micay-21/+21
this has been replaced by `for`
2013-08-03Rename sum -> _sum.OGINO Masanori-6/+6
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-08-03replace all remaining `for` with `foreach` or `do`Daniel Micay-19/+22
2013-08-02replace `range` with an external iteratorDaniel Micay-9/+8
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-1/+1
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01std: Remove the internal iterator methods from trait Setblake2-ppc-35/+35
.intersection(), .union() etc methods in trait std::container::Set use internal iters. Remove these methods from the trait. I reported issue #8154 for the reinstatement of iterator-based set algebra methods to the Set trait. For bitv and treemap, that lack Iterator implementations of set operations, preserve them as methods directly on the types themselves. For HashSet, these methods are replaced by the present .union_iter() etc.
2013-08-01extra: Use external iterators in bitv implementationblake2-ppc-33/+55
Convert some internally used functions to use a external iterators. Change all uses of remaining internal iterators to use `do` expr
2013-08-01extra: Replace `for` with `do { .. }` expr where internal iterators are usedblake2-ppc-20/+25
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-10/+10
2013-07-30extra: Add .rev_iter() for bitvblake2-ppc-0/+5
2013-07-30extra: Implement DoubleEnded and RandomAccess iterators for bitvblake2-ppc-4/+35
2013-07-25Added default impls for container methodsSteven Fackler-1/+1
A couple of implementations of Container::is_empty weren't exactly self.len() == 0 so I left them alone (e.g. Treemap).
2013-07-21Added bitv iterator benchmarksSteven Fackler-0/+36
2013-07-21Added iterator testsSteven Fackler-0/+19
2013-07-21Removed unecessary indirection in BitvSteven Fackler-16/+16
BitvVariant is the same size as it was before (16 bytes).
2013-07-21Derive Clone for bitv stuffSteven Fackler-18/+24
2013-07-21Switched bitv to external iteratorsSteven Fackler-17/+54
2013-07-18Fix warnings in libextra testsblake2-ppc-25/+25
Most of these are "unneccesary allocation" in bitv, for ~[false, ..] instead of [false, ..].
2013-07-17test: Fix tests.Patrick Walton-1/+1
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+2
2013-07-13Split mutable methods out of Set and MapSteven Fackler-32/+34
Fixes most of #4989. I didn't add Persistent{Set,Map} since the only persistent data structure is fun_treemap and its functionality is currently too limited to build a trait out of.
2013-07-12auto merge of #7736 : thestinger/rust/doc, r=thestingerbors-4/+4
2b96408 r=sanxiyn documents conversion, size hints and double-ended iterators and adds more of the traits to the prelude
2013-07-12Replace owned with borrowed pointer.Chris Morgan-1/+1
As pointed out by cmr, there's no need for it to be owned there. That was also in the original scope of #7711.
2013-07-12extend the iterator tutorialDaniel Micay-4/+4
documents conversion, size hints and double-ended iterators and adds more of the traits to the prelude
2013-07-12Make Bitv::eq_vec take ~[bool] rather than ~[uint]Chris Morgan-69/+67
Fixes #7711.
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-3/+4
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-8/+8
2013-06-30auto merge of #7468 : cmr/rust/great_renaming, r=pcwaltonbors-10/+9
2013-06-29Removing a lot of usage of '&const'Alex Crichton-2/+2
2013-06-29Warning cleanupCorey Richardson-1/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-9/+8
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-3/+9
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-24remove old_iterDaniel Micay-5/+1
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-5/+5
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-41/+41
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-73/+80
2013-05-30Remove unnecessary 'use' formsDaniel Farina-2/+1
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30libextra: Require documentation by defaultAlex Crichton-1/+3
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+6
2013-05-28Silence various warnings throughout test modulesAlex Crichton-1/+1
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-1/+1
2013-05-23cleanup warnings from libextraErick Tryzelaar-11/+6
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1494
This only changes the directory names; it does not change the "real" metadata names.