Consume this code example and return only the lines that have been accrued so far. This is useful when the code example being collected has been determined to be invalid, and one wants to "give up" and print the original lines through unchanged without attempting formatting.
(self)
| 821 | /// determined to be invalid, and one wants to "give up" and print the |
| 822 | /// original lines through unchanged without attempting formatting. |
| 823 | fn into_code(self) -> Vec<CodeExampleLine<'src>> { |
| 824 | match self { |
| 825 | CodeExampleKind::Doctest(doctest) => doctest.lines, |
| 826 | CodeExampleKind::Rst(litblock) => litblock.lines, |
| 827 | CodeExampleKind::Markdown(fenced) => fenced.lines, |
| 828 | } |
| 829 | } |
| 830 | |
| 831 | /// This returns any extra indent that will be added after formatting this |
| 832 | /// code example. |
no outgoing calls