Maps a `PackedOption ` to `Option ` by applying a function to a contained value.
(self, f: F)
| 65 | |
| 66 | /// Maps a `PackedOption<T>` to `Option<U>` by applying a function to a contained value. |
| 67 | pub fn map<U, F>(self, f: F) -> Option<U> |
| 68 | where |
| 69 | F: FnOnce(T) -> U, |
| 70 | { |
| 71 | self.expand().map(f) |
| 72 | } |
| 73 | |
| 74 | /// Unwrap a packed `Some` value or panic. |
| 75 | #[track_caller] |
no test coverage detected