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.
2 parents c2590e6 + 49eaa0f commit 756e7beCopy full SHA for 756e7be
library/core/src/cell.rs
@@ -405,6 +405,7 @@ impl<T> Cell<T> {
405
/// assert_eq!(cell.replace(10), 5);
406
/// assert_eq!(cell.get(), 10);
407
/// ```
408
+ #[inline]
409
#[stable(feature = "move_cell", since = "1.17.0")]
410
pub fn replace(&self, val: T) -> T {
411
// SAFETY: This can cause data races if called from a separate thread,
0 commit comments