We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
array_methods
1 parent 76e755c commit 905c2baCopy full SHA for 905c2ba
library/core/src/array/mod.rs
@@ -368,14 +368,14 @@ impl<T, const N: usize> [T; N] {
368
}
369
370
/// Returns a slice containing the entire array. Equivalent to `&s[..]`.
371
- #[unstable(feature = "array_methods", issue = "76118")]
372
- pub fn as_slice(&self) -> &[T] {
+ #[stable(feature = "array_as_slice", since = "1.57.0")]
+ pub const fn as_slice(&self) -> &[T] {
373
self
374
375
376
/// Returns a mutable slice containing the entire array. Equivalent to
377
/// `&mut s[..]`.
378
379
pub fn as_mut_slice(&mut self) -> &mut [T] {
380
381
0 commit comments