(&self, other: &Self)
| 494 | |
| 495 | impl 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 | |
| 510 | pub fn version_info() -> VersionInfo { |
no outgoing calls
no test coverage detected