diff --git a/src/cell/cell.rs b/src/cell/cell.rs index 37d76dde..fc14861d 100644 --- a/src/cell/cell.rs +++ b/src/cell/cell.rs @@ -67,6 +67,12 @@ impl Cell { { self.replace(T::default()) } + + /// Unwraps the value, consuming the cell. + #[track_caller] + pub fn into_inner(self) -> T { + self.cell.into_inner() + } } impl Default for Cell {