We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcc1d1 commit e08daafCopy full SHA for e08daaf
src/libcollections/vec.rs
@@ -441,16 +441,16 @@ impl<T> Vec<T> {
441
442
/// Extracts a slice containing the entire vector.
443
#[inline]
444
- #[unstable(feature = "convert",
445
- reason = "waiting on RFC revision")]
+ #[deprecated(since = "1.2",
+ reason = "Use slicing syntax instead: &v[..]")]
446
pub fn as_slice(&self) -> &[T] {
447
self
448
}
449
450
/// Deprecated: use `&mut s[..]` instead.
451
452
453
+ reason = "Use slicing syntax instead: &mut v[..]")]
454
pub fn as_mut_slice(&mut self) -> &mut [T] {
455
&mut self[..]
456
0 commit comments