The indent of the entire code block relative to the start of the line. For example: ```python def test(): """Docstring Example: >>> 1 + 1 ``` The `>>> ` block has an indent of 8 columns: The shared indent with the docstring and the 4 spaces inside the docstring.
(&self)
| 852 | /// The `>>> ` block has an indent of 8 columns: The shared indent with the docstring and the 4 spaces |
| 853 | /// inside the docstring. |
| 854 | fn indent(&self) -> Indentation { |
| 855 | match self { |
| 856 | CodeExampleKind::Doctest(doctest) => Indentation::from_str(doctest.ps1_indent), |
| 857 | CodeExampleKind::Rst(rst) => rst.min_indent.unwrap_or(rst.opening_indent), |
| 858 | CodeExampleKind::Markdown(markdown) => markdown.opening_fence_indent, |
| 859 | } |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | /// State corresponding to a single doctest code example found in a docstring. |