/// Test whether the current 'Algorithm` is sufficiently secure.
Test whether the current 'Algorithm` is sufficiently secure.
Test whether the current ' Algorithm ` is sufficiently secure .
pub fn needs_migrating(&self, prim: &Primitive) -> bool {
        match *self {
            Algorithm::Single(ref a2) |
            // Note: here we only decide to migrate if default is not <= a2
            // This includes the case that they are incomparable
            Algorithm::Nested { outer: ref a2, .. } => {
                !matches!(a2.partial_cmp(prim), Some(Ordering::Greater) | Some(Ordering::Equal))
            }
        }
    }
pub fn needs_migrating ( & self , prim : & Primitive ) -> bool { match * self { Algorithm :: Single ( ref a2 ) | // Note: here we only decide to migrate if default is not <= a2 // This includes the case that they are incomparable Algorithm :: Nested { outer : ref a2 , .. } => { ! matches ! ( a2 partial_cmp ( prim ) Some ( Ordering Greater ) Some ( Ordering Equal ) ) } } }
Test whether the current 'Algorithm` is sufficiently secure.
Test whether the current ' Algorithm ` is sufficiently secure .
&self
prim
&Primitive