pub fn cmp_id(
        hash_a: &FileHash,
        a: &ParameterType,
        hash_b: &FileHash,
        b: &ParameterType,
    ) -> cmp::Ordering {
        match (a.ty(hash_a), b.ty(hash_b)) {
            (Some(ref ty_a), Some(ref ty_b)) => Type::cmp_id(hash_a, ty_a, hash_b, ty_b),
            (Some(_), None) => cmp::Ordering::Less,
            (None, Some(_)) => cmp::Ordering::Greater,
            (None, None) => cmp::Ordering::Equal,
        }
    }
/// Compare the identifying information of two types.
///
/// Parameters are considered equal if they have the same types.
/// Parameter names are ignored.
Compare the identifying information of two types.
Parameters are considered equal if they have the same types.
Parameter names are ignored.
Compare the identifying information of two types . Parameters are considered equal if they have the same types . Parameter names are ignored .
pub fn cmp_id(
        hash_a: &FileHash,
        a: &ParameterType,
        hash_b: &FileHash,
        b: &ParameterType,
    ) -> cmp::Ordering {
        match (a.ty(hash_a), b.ty(hash_b)) {
            (Some(ref ty_a), Some(ref ty_b)) => Type::cmp_id(hash_a, ty_a, hash_b, ty_b),
            (Some(_), None) => cmp::Ordering::Less,
            (None, Some(_)) => cmp::Ordering::Greater,
            (None, None) => cmp::Ordering::Equal,
        }
    }
pub fn cmp_id ( hash_a : & FileHash , a : & ParameterType , hash_b : & FileHash , b : & ParameterType , ) -> cmp :: Ordering { match ( a . ty ( hash_a ) , b . ty ( hash_b ) ) { ( Some ( ref ty_a ) , Some ( ref ty_b ) ) => Type :: cmp_id ( hash_a , ty_a , hash_b , ty_b ) , ( Some ( _ ) , None ) => cmp :: Ordering :: Less , ( None , Some ( _ ) ) => cmp :: Ordering :: Greater , ( None , None ) => cmp :: Ordering :: Equal , } }
Compare the identifying information of two types.
Compare the identifying information of two types .
hash_a
&FileHash
a
&ParameterType
hash_b
&FileHash
b
&ParameterType
hash_a
&FileHash
a
&ParameterType
hash_b
&FileHash
b
&ParameterType