rust/src/libcollections
Brian Anderson a4b354ca02 core: Add binary_search and binary_search_elem methods to slices.
These are like the existing bsearch methods but if the search fails,
it returns the next insertion point.

The new `binary_search` returns a `BinarySearchResult` that is either
`Found` or `NotFound`. For convenience, the `found` and `not_found`
methods convert to `Option`, ala `Result`.

Deprecate bsearch and bsearch_elem.
2014-08-13 11:30:15 -07:00
..
hash std: Rename various slice traits for consistency 2014-08-13 11:30:14 -07:00
bitv.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
btree.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
deque.rs Fix deprecation warning in deque.rs 2014-07-24 07:25:48 -07:00
dlist.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
enum_set.rs Remove kludgy imports from vec! macro 2014-07-23 13:20:17 -07:00
lib.rs Just land already 2014-07-23 13:20:17 -07:00
macros.rs Remove kludgy imports from vec! macro 2014-07-23 13:20:17 -07:00
priority_queue.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
ringbuf.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
slice.rs core: Add binary_search and binary_search_elem methods to slices. 2014-08-13 11:30:15 -07:00
smallintmap.rs Deprecation fallout in libcollections 2014-08-12 13:35:56 -07:00
str.rs std: Rename various slice traits for consistency 2014-08-13 11:30:14 -07:00
string.rs core: Rename ImmutableSlice::unsafe_ref to unsafe_get 2014-08-13 11:30:14 -07:00
treemap.rs auto merge of #16195 : P1start/rust/more-index, r=aturon 2014-08-12 05:11:18 +00:00
trie.rs core: Rename ImmutableSlice::unsafe_ref to unsafe_get 2014-08-13 11:30:14 -07:00
vec.rs collections: Deprecate Vec::tailn. Same as slice_from 2014-08-13 11:30:15 -07:00