Add a tracking issue for new as_slice methods
This commit is contained in:
parent
51e0d1c299
commit
e478cadbbe
2 changed files with 2 additions and 2 deletions
|
@ -2481,7 +2481,7 @@ impl<'a, T> Drain<'a, T> {
|
||||||
/// let _ = drain.next().unwrap();
|
/// let _ = drain.next().unwrap();
|
||||||
/// assert_eq!(drain.as_slice(), &['b', 'c']);
|
/// assert_eq!(drain.as_slice(), &['b', 'c']);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "vec_drain_as_slice", reason = "recently added", issue = "0")]
|
#[unstable(feature = "vec_drain_as_slice", reason = "recently added", issue = "58957")]
|
||||||
pub fn as_slice(&self) -> &[T] {
|
pub fn as_slice(&self) -> &[T] {
|
||||||
self.iter.as_slice()
|
self.iter.as_slice()
|
||||||
}
|
}
|
||||||
|
|
|
@ -3312,7 +3312,7 @@ impl<'a, T> IterMut<'a, T> {
|
||||||
/// // Now `as_slice` returns "[2, 3]":
|
/// // Now `as_slice` returns "[2, 3]":
|
||||||
/// assert_eq!(iter.as_slice(), &[2, 3]);
|
/// assert_eq!(iter.as_slice(), &[2, 3]);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "slice_iter_mut_as_slice", reason = "recently added", issue = "0")]
|
#[unstable(feature = "slice_iter_mut_as_slice", reason = "recently added", issue = "58957")]
|
||||||
pub fn as_slice(&self) -> &[T] {
|
pub fn as_slice(&self) -> &[T] {
|
||||||
self.make_slice()
|
self.make_slice()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue