Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argumentcomputer/ix
/ weak_cmp
Method
weak_cmp
crates/common/src/strong_ordering.rs:33–35 ·
view source on GitHub ↗
(x: &A, y: &A)
Source
from the content-addressed store, hash-verified
31
SOrd { strong: true, ordering: x.cmp(y) }
32
}
33
pub fn weak_cmp<A: Ord>(x: &A, y: &A) -> Self {
34
SOrd { strong: false, ordering: x.cmp(y) }
35
}
36
37
#[inline]
38
pub fn try_compare<E, F>(self, other: F) -> Result<Self, E>
Callers
nothing calls this directly
Calls
1
cmp
Method · 0.45
Tested by
no test coverage detected