Returns a non-None value only if the formatter is running on a code snippet within a docstring. The quote character returned corresponds to the quoting used for the docstring containing the code snippet currently being formatted.
(&self)
| 96 | /// The quote character returned corresponds to the quoting used for the |
| 97 | /// docstring containing the code snippet currently being formatted. |
| 98 | pub(crate) fn docstring(&self) -> Option<Quote> { |
| 99 | self.docstring |
| 100 | } |
| 101 | |
| 102 | /// Return a new context suitable for formatting code snippets within a |
| 103 | /// docstring. |
no outgoing calls
no test coverage detected