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 af60248 commit 6c2b340Copy full SHA for 6c2b340
src/libcollections/vec.rs
@@ -440,14 +440,18 @@ impl<T> Vec<T> {
440
}
441
442
/// Extracts a slice containing the entire vector.
443
+ ///
444
+ /// Equivalent to `&s[..]`.
445
#[inline]
446
#[unstable(feature = "convert",
447
reason = "waiting on RFC revision")]
448
pub fn as_slice(&self) -> &[T] {
449
self
450
451
- /// Deprecated: use `&mut s[..]` instead.
452
+ /// Extracts a mutable slice of the entire vector.
453
454
+ /// Equivalent to `&mut s[..]`.
455
456
457
0 commit comments