Takes the value out of the packed option, leaving a `None` in its place.
(&mut self)
| 85 | |
| 86 | /// Takes the value out of the packed option, leaving a `None` in its place. |
| 87 | pub fn take(&mut self) -> Option<T> { |
| 88 | mem::replace(self, None.into()).expand() |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl<T: ReservedValue> Default for PackedOption<T> { |