We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
core::slice::fill_with
1 parent 18ec4a9 commit b50df6dCopy full SHA for b50df6d
library/core/src/slice/mod.rs
@@ -2706,13 +2706,12 @@ impl<T> [T] {
2706
/// # Examples
2707
///
2708
/// ```
2709
- /// #![feature(slice_fill_with)]
2710
- ///
2711
/// let mut buf = vec![1; 10];
2712
/// buf.fill_with(Default::default);
2713
/// assert_eq!(buf, vec![0; 10]);
2714
2715
- #[unstable(feature = "slice_fill_with", issue = "79221")]
+ #[doc(alias = "memset")]
+ #[stable(feature = "slice_fill_with", since = "1.51.0")]
2716
pub fn fill_with<F>(&mut self, mut f: F)
2717
where
2718
F: FnMut() -> T,
0 commit comments