Applies a fallible `f` (returns `Result`) to the data of this [`Transformed`] object, without modifying the `transformed` flag.
(self, f: F)
| 700 | /// Applies a fallible `f` (returns `Result`) to the data of this |
| 701 | /// [`Transformed`] object, without modifying the `transformed` flag. |
| 702 | pub fn map_data<U, F: FnOnce(T) -> Result<U>>(self, f: F) -> Result<Transformed<U>> { |
| 703 | f(self.data).map(|data| Transformed::new(data, self.transformed, self.tnr)) |
| 704 | } |
| 705 | |
| 706 | /// Applies a fallible transforming `f` to the data of this [`Transformed`] |
| 707 | /// object. |
no test coverage detected