Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1844
impl PartialOrd for Indentation {
1845
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
1846
Some(self.columns().cmp(&other.columns()))
1847
}
1848
}
1849
1850
impl PartialEq for Indentation {
Callers
nothing calls this directly
Calls
2
columns
Method · 0.80
cmp
Method · 0.45
Tested by
no test coverage detected