You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naming: these were originally named fill, fill_with, and fill_from to be consistent consistent with slice::{fill_with,fill_from}. Since changing to slice-inherent methods, these needed to be renamed to avoid conflict. Should we change to naming that keeps fill? Amanieu suggested fill_init at Add inherent versions of MaybeUninit methods for slices #129259 (comment).
View all comments
Feature gate:
#![feature(maybe_uninit_fill)]This is a tracking issue for ACP rust-lang/libs-team#156
Public API
Steps / History
MaybeUninit::fill{,_cloned,_mut,_with,_from}#117426, Implement MaybeUninit::fill{,_with,_from} #121280MaybeUninitinherent slice methods part 2 #135394Unresolved Questions
fill,fill_with, andfill_fromto be consistent consistent withslice::{fill_with,fill_from}. Since changing to slice-inherent methods, these needed to be renamed to avoid conflict. Should we change to naming that keepsfill? Amanieu suggestedfill_initat Add inherent versions of MaybeUninit methods for slices #129259 (comment).Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩