Return this reformatted line, but with the given function applied to the text of the line.
(self, mut map: impl FnMut(&str) -> String)
| 662 | /// Return this reformatted line, but with the given function applied to |
| 663 | /// the text of the line. |
| 664 | fn map(self, mut map: impl FnMut(&str) -> String) -> OutputDocstringLine<'static> { |
| 665 | OutputDocstringLine { |
| 666 | line: Cow::Owned(map(&self.line)), |
| 667 | ..self |
| 668 | } |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | /// A single code example extracted from a docstring. |
no outgoing calls