@@ -166,7 +166,7 @@ pub trait SliceExt {
166
166
/// assert_eq!(num_moved, 3);
167
167
/// assert!(a == [6i, 7, 8, 4, 5]);
168
168
/// ```
169
- #[ experimental = "uncertain about this API approach" ]
169
+ #[ unstable = "uncertain about this API approach" ]
170
170
fn move_from ( & mut self , src : Vec < Self :: Item > , start : uint , end : uint ) -> uint ;
171
171
172
172
/// Returns a subslice spanning the interval [`start`, `end`).
@@ -175,23 +175,23 @@ pub trait SliceExt {
175
175
/// original slice (i.e. when `end > self.len()`) or when `start > end`.
176
176
///
177
177
/// Slicing with `start` equal to `end` yields an empty slice.
178
- #[ experimental = "will be replaced by slice syntax" ]
178
+ #[ unstable = "will be replaced by slice syntax" ]
179
179
fn slice ( & self , start : uint , end : uint ) -> & [ Self :: Item ] ;
180
180
181
181
/// Returns a subslice from `start` to the end of the slice.
182
182
///
183
183
/// Panics when `start` is strictly greater than the length of the original slice.
184
184
///
185
185
/// Slicing from `self.len()` yields an empty slice.
186
- #[ experimental = "will be replaced by slice syntax" ]
186
+ #[ unstable = "will be replaced by slice syntax" ]
187
187
fn slice_from ( & self , start : uint ) -> & [ Self :: Item ] ;
188
188
189
189
/// Returns a subslice from the start of the slice to `end`.
190
190
///
191
191
/// Panics when `end` is strictly greater than the length of the original slice.
192
192
///
193
193
/// Slicing to `0` yields an empty slice.
194
- #[ experimental = "will be replaced by slice syntax" ]
194
+ #[ unstable = "will be replaced by slice syntax" ]
195
195
fn slice_to ( & self , end : uint ) -> & [ Self :: Item ] ;
196
196
197
197
/// Divides one slice into two at an index.
@@ -284,11 +284,11 @@ pub trait SliceExt {
284
284
fn first ( & self ) -> Option < & Self :: Item > ;
285
285
286
286
/// Returns all but the first element of a slice.
287
- #[ experimental = "likely to be renamed" ]
287
+ #[ unstable = "likely to be renamed" ]
288
288
fn tail ( & self ) -> & [ Self :: Item ] ;
289
289
290
290
/// Returns all but the last element of a slice.
291
- #[ experimental = "likely to be renamed" ]
291
+ #[ unstable = "likely to be renamed" ]
292
292
fn init ( & self ) -> & [ Self :: Item ] ;
293
293
294
294
/// Returns the last element of a slice, or `None` if it is empty.
@@ -384,23 +384,23 @@ pub trait SliceExt {
384
384
/// original slice (i.e. when `end > self.len()`) or when `start > end`.
385
385
///
386
386
/// Slicing with `start` equal to `end` yields an empty slice.
387
- #[ experimental = "will be replaced by slice syntax" ]
387
+ #[ unstable = "will be replaced by slice syntax" ]
388
388
fn slice_mut ( & mut self , start : uint , end : uint ) -> & mut [ Self :: Item ] ;
389
389
390
390
/// Returns a mutable subslice from `start` to the end of the slice.
391
391
///
392
392
/// Panics when `start` is strictly greater than the length of the original slice.
393
393
///
394
394
/// Slicing from `self.len()` yields an empty slice.
395
- #[ experimental = "will be replaced by slice syntax" ]
395
+ #[ unstable = "will be replaced by slice syntax" ]
396
396
fn slice_from_mut ( & mut self , start : uint ) -> & mut [ Self :: Item ] ;
397
397
398
398
/// Returns a mutable subslice from the start of the slice to `end`.
399
399
///
400
400
/// Panics when `end` is strictly greater than the length of the original slice.
401
401
///
402
402
/// Slicing to `0` yields an empty slice.
403
- #[ experimental = "will be replaced by slice syntax" ]
403
+ #[ unstable = "will be replaced by slice syntax" ]
404
404
fn slice_to_mut ( & mut self , end : uint ) -> & mut [ Self :: Item ] ;
405
405
406
406
/// Returns an iterator that allows modifying each value
@@ -412,11 +412,11 @@ pub trait SliceExt {
412
412
fn first_mut ( & mut self ) -> Option < & mut Self :: Item > ;
413
413
414
414
/// Returns all but the first element of a mutable slice
415
- #[ experimental = "likely to be renamed or removed" ]
415
+ #[ unstable = "likely to be renamed or removed" ]
416
416
fn tail_mut ( & mut self ) -> & mut [ Self :: Item ] ;
417
417
418
418
/// Returns all but the last element of a mutable slice
419
- #[ experimental = "likely to be renamed or removed" ]
419
+ #[ unstable = "likely to be renamed or removed" ]
420
420
fn init_mut ( & mut self ) -> & mut [ Self :: Item ] ;
421
421
422
422
/// Returns a mutable pointer to the last item in the slice.
@@ -588,7 +588,7 @@ pub trait SliceExt {
588
588
/// assert!(dst.clone_from_slice(&src2) == 3);
589
589
/// assert!(dst == [3i, 4, 5]);
590
590
/// ```
591
- #[ experimental ]
591
+ #[ unstable ]
592
592
fn clone_from_slice ( & mut self , & [ Self :: Item ] ) -> uint where Self :: Item : Clone ;
593
593
594
594
/// Sorts the slice, in place.
@@ -677,11 +677,11 @@ pub trait SliceExt {
677
677
fn prev_permutation ( & mut self ) -> bool where Self :: Item : Ord ;
678
678
679
679
/// Find the first index containing a matching value.
680
- #[ experimental ]
680
+ #[ unstable ]
681
681
fn position_elem ( & self , t : & Self :: Item ) -> Option < uint > where Self :: Item : PartialEq ;
682
682
683
683
/// Find the last index containing a matching value.
684
- #[ experimental ]
684
+ #[ unstable ]
685
685
fn rposition_elem ( & self , t : & Self :: Item ) -> Option < uint > where Self :: Item : PartialEq ;
686
686
687
687
/// Return true if the slice contains an element with the given value.
@@ -697,7 +697,7 @@ pub trait SliceExt {
697
697
fn ends_with ( & self , needle : & [ Self :: Item ] ) -> bool where Self :: Item : PartialEq ;
698
698
699
699
/// Convert `self` into a vector without clones or allocation.
700
- #[ experimental ]
700
+ #[ unstable ]
701
701
fn into_vec ( self : Box < Self > ) -> Vec < Self :: Item > ;
702
702
}
703
703
@@ -1034,7 +1034,7 @@ impl<T: Clone, V: AsSlice<T>> SliceConcatExt<T, Vec<T>> for [V] {
1034
1034
///
1035
1035
/// The last generated swap is always (0, 1), and it returns the
1036
1036
/// sequence to its initial order.
1037
- #[ experimental ]
1037
+ #[ unstable ]
1038
1038
#[ derive( Clone ) ]
1039
1039
pub struct ElementSwaps {
1040
1040
sdir : Vec < SizeDirection > ,
@@ -1046,7 +1046,7 @@ pub struct ElementSwaps {
1046
1046
1047
1047
impl ElementSwaps {
1048
1048
/// Creates an `ElementSwaps` iterator for a sequence of `length` elements.
1049
- #[ experimental ]
1049
+ #[ unstable ]
1050
1050
pub fn new ( length : uint ) -> ElementSwaps {
1051
1051
// Initialize `sdir` with a direction that position should move in
1052
1052
// (all negative at the beginning) and the `size` of the
0 commit comments