Lines Matching defs:cmp
13 use std::cmp::{self, Ordering};
693 fn cmp(&self, other: &Self) -> cmp::Ordering {
696 let cmp = unsafe { ffi::X509_cmp(self.as_ptr(), other.as_ptr()) };
697 cmp.cmp(&0)
702 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
703 Some(self.cmp(other))
708 fn partial_cmp(&self, other: &X509) -> Option<cmp::Ordering> {
715 self.cmp(other) == cmp::Ordering::Equal
828 fn cmp(&self, other: &Self) -> cmp::Ordering {
829 X509Ref::cmp(self, other)
834 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
840 fn partial_cmp(&self, other: &X509Ref) -> Option<cmp::Ordering> {
1244 let cmp = unsafe { ffi::X509_NAME_cmp(self.as_ptr(), other.as_ptr()) };
1245 if cfg!(ossl300) && cmp == -2 {
1248 Ok(cmp.cmp(&0))