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

Method partial_cmp

crates/ruff_python_formatter/src/string/docstring.rs:1845–1847  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

1843
1844impl PartialOrd for Indentation {
1845 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
1846 Some(self.columns().cmp(&other.columns()))
1847 }
1848}
1849
1850impl PartialEq for Indentation {

Callers

nothing calls this directly

Calls 2

columnsMethod · 0.80
cmpMethod · 0.45

Tested by

no test coverage detected