mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
parent
af60248ecf
commit
6c2b340fdc
|
@ -440,6 +440,8 @@ pub fn truncate(&mut self, len: usize) {
|
|||
}
|
||||
|
||||
/// Extracts a slice containing the entire vector.
|
||||
///
|
||||
/// Equivalent to `&s[..]`.
|
||||
#[inline]
|
||||
#[unstable(feature = "convert",
|
||||
reason = "waiting on RFC revision")]
|
||||
|
@ -447,7 +449,9 @@ pub fn as_slice(&self) -> &[T] {
|
|||
self
|
||||
}
|
||||
|
||||
/// Deprecated: use `&mut s[..]` instead.
|
||||
/// Extracts a mutable slice of the entire vector.
|
||||
///
|
||||
/// Equivalent to `&mut s[..]`.
|
||||
#[inline]
|
||||
#[unstable(feature = "convert",
|
||||
reason = "waiting on RFC revision")]
|
||||
|
|
Loading…
Reference in a new issue