Commit graph

18 commits

Author SHA1 Message Date
Stjepan Glavina
b7a3d46efa Add 'the' before 'start'/'end' 2017-03-22 18:42:42 +01:00
Stjepan Glavina
d6da1d9b46 Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
Alex Crichton
1241a88fa9 Minor fixups to fix tidy errors 2017-03-17 13:28:53 -07:00
Djzin
43382903a1 add impl for RangeToInclusive 2017-02-18 20:58:12 +00:00
Djzin
328818934b impl RangeArgument for RangeInclusive and add appropriate tests 2017-02-18 18:57:18 +00:00
djzin
58e597e1f7 make rangeargument methods non-default; simplify impl 2017-01-14 16:51:51 +00:00
djzin
9f2f00aaad allow unsized types in RangeArgument 2017-01-14 16:51:51 +00:00
djzin
14b0ea8aa6 fix up tests 2017-01-14 16:51:51 +00:00
djzin
3711d2f902 impl RangeArgument for (Bound<T>, Bound<T>) 2017-01-14 16:51:50 +00:00
djzin
35f23e8211 have RangeArgument return a Bound<&T> from each of its methods 2017-01-14 16:51:50 +00:00
Jeffrey Seyfried
a9a2979dba Remove needless imports in libcollections. 2016-08-24 22:13:13 +00:00
Corey Farwell
727d9293e4 Add doc examples for range::RangeArgument::{start,end}. 2016-08-02 09:01:46 -04:00
Alex Burka
24cc90262b note work still to be done
In particular, uses of inclusive ranges within the standard library are
still waiting. Slices and collections can be sliced with `usize` and
`Range*<usize>`, but not yet `Range*Inclusive<usize>`.

Also, we need to figure out what to do about `RangeArgument`. Currently
it has `start()` and `end()` methods which are pretty much identical to
`Range::start` and `Range::end`. For the same reason as Range itself,
these methods can't express a range such as `0...255u8` without
overflow. The easiest choice, it seems to me, is either changing the
meaning of `end()` to be inclusive, or adding a new method, say
`last()`, that is inclusive and specifying that `end()` returns `None`
in cases where it would overflow. Changing the semantics would be a
breaking change, but `RangeArgument` is unstable so maybe we should do
it anyway.
2016-02-27 02:01:41 -05:00
Alex Burka
33b12be8b5 update tracking issue for collections_range 2016-01-13 13:50:41 -05:00
Nick Cameron
0dfd875b6e rustfmt libcollections 2015-11-24 11:53:47 +13:00
Alex Crichton
377c11aa83 collections: Add issues for unstable features 2015-08-15 18:09:17 -07:00
Alex Crichton
d444d0c357 collections: Split the collections feature
This commit also deprecates the `as_string` and `as_slice` free functions in the
`string` and `vec` modules.
2015-06-17 09:06:59 -07:00
Ulrik Sverdrup
9993a43e5c collections: Add trait RangeArgument
RangeArgument is introduced as unstable under the
feature(collections_range)
2015-04-27 19:37:13 +02:00