MCPcopy Create free account
hub / github.com/astral-sh/ruff / as_output

Method as_output

crates/ruff_python_formatter/src/string/docstring.rs:620–626  ·  view source on GitHub ↗

Borrow this input docstring line as an output docstring line.

(&self)

Source from the content-addressed store, hash-verified

618impl<'src> InputDocstringLine<'src> {
619 /// Borrow this input docstring line as an output docstring line.
620 fn as_output(&self) -> OutputDocstringLine<'src> {
621 OutputDocstringLine {
622 line: Cow::Borrowed(self.line),
623 offset: self.offset,
624 is_last: self.is_last(),
625 }
626 }
627
628 /// Whether this is the last line in the docstring or not.
629 fn is_last(&self) -> bool {

Callers 2

add_oneMethod · 0.80
run_action_queueMethod · 0.80

Calls 1

is_lastMethod · 0.80

Tested by

no test coverage detected