13
13
use core:: option:: Option :: { self , None , Some } ;
14
14
use core:: ops:: { RangeFull , Range , RangeTo , RangeFrom } ;
15
15
16
- #[ unstable( feature = "collections" , reason = "was just added" ) ]
17
16
/// **RangeArgument** is implemented by Rust's built-in range types, produced
18
17
/// by range syntax like `..`, `a..`, `..b` or `c..d`.
19
18
pub trait RangeArgument < T > {
@@ -29,20 +28,16 @@ pub trait RangeArgument<T> {
29
28
}
30
29
31
30
32
- #[ unstable( feature = "collections" , reason = "was just added" ) ]
33
31
impl < T > RangeArgument < T > for RangeFull { }
34
32
35
- #[ unstable( feature = "collections" , reason = "was just added" ) ]
36
33
impl < T > RangeArgument < T > for RangeFrom < T > {
37
34
fn start ( & self ) -> Option < & T > { Some ( & self . start ) }
38
35
}
39
36
40
- #[ unstable( feature = "collections" , reason = "was just added" ) ]
41
37
impl < T > RangeArgument < T > for RangeTo < T > {
42
38
fn end ( & self ) -> Option < & T > { Some ( & self . end ) }
43
39
}
44
40
45
- #[ unstable( feature = "collections" , reason = "was just added" ) ]
46
41
impl < T > RangeArgument < T > for Range < T > {
47
42
fn start ( & self ) -> Option < & T > { Some ( & self . start ) }
48
43
fn end ( & self ) -> Option < & T > { Some ( & self . end ) }
0 commit comments