Applies an infallible `f` to the data of this [`Transformed`] object, without modifying the `transformed` flag.
(self, f: F)
| 694 | /// Applies an infallible `f` to the data of this [`Transformed`] object, |
| 695 | /// without modifying the `transformed` flag. |
| 696 | pub fn update_data<U, F: FnOnce(T) -> U>(self, f: F) -> Transformed<U> { |
| 697 | Transformed::new(f(self.data), self.transformed, self.tnr) |
| 698 | } |
| 699 | |
| 700 | /// Applies a fallible `f` (returns `Result`) to the data of this |
| 701 | /// [`Transformed`] object, without modifying the `transformed` flag. |
no test coverage detected