MCPcopy Index your code
hub / github.com/emwalker/digraph / cmp

Method cmp

backend/src/git/index.rs:104–106  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

102
103impl std::cmp::Ord for SynonymEntry {
104 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
105 (self.name.len(), &self.name, &self.id).cmp(&(other.name.len(), &other.name, &other.id))
106 }
107}
108
109#[derive(Debug, Eq, PartialEq)]

Callers 1

partial_cmpMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected