MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / cmp

Method cmp

rust/src/lib.rs:496–507  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

494
495impl Ord for VersionInfo {
496 fn cmp(&self, other: &Self) -> cmp::Ordering {
497 if self == other {
498 return cmp::Ordering::Equal;
499 }
500 let bn_version_0 = VersionInfo::into_owned_raw(self);
501 let bn_version_1 = VersionInfo::into_owned_raw(other);
502 if unsafe { BNVersionLessThan(bn_version_0, bn_version_1) } {
503 cmp::Ordering::Less
504 } else {
505 cmp::Ordering::Greater
506 }
507 }
508}
509
510pub fn version_info() -> VersionInfo {

Callers 4

partial_cmpMethod · 0.45
present_formFunction · 0.45
post_processMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected