MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / partial_cmp

Method partial_cmp

src/analysis/pointsto/mod.rs:670–684  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

668/// Probably > Possibly > Unlikey > Unknown
669impl PartialOrd for ApproximateAliasKind {
670 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
671 use ApproximateAliasKind::*;
672 match (*self, *other) {
673 (Probably, Probably)
674 | (Possibly, Possibly)
675 | (Unlikely, Unlikely)
676 | (Unknown, Unknown) => Some(Ordering::Equal),
677 (Probably, _) | (Possibly, Unlikely) | (Possibly, Unknown) | (Unlikely, Unknown) => {
678 Some(Ordering::Greater)
679 }
680 (_, Probably) | (Unlikely, Possibly) | (Unknown, Possibly) | (Unknown, Unlikely) => {
681 Some(Ordering::Less)
682 }
683 }
684 }
685}
686
687/// `AliasId` identifies a unique memory cell interprocedurally.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected