pub fn mem(self, x: &K) -> bool {
        match self {
            Map(None) => false,
            Map(Some(Node(l, v, _d, r, _h))) => match x.cmp(v) {
                Ordering::Equal => true,
                Ordering::Less => l.mem(x),
                Ordering::Greater => r.mem(x),
            },
        }
    }
/// Check whether a key is present in the map.
Check whether a key is present in the map.
Check whether a key is present in the map .
pub fn mem(self, x: &K) -> bool {
        match self {
            Map(None) => false,
            Map(Some(Node(l, v, _d, r, _h))) => match x.cmp(v) {
                Ordering::Equal => true,
                Ordering::Less => l.mem(x),
                Ordering::Greater => r.mem(x),
            },
        }
    }
pub fn mem ( self , x : & K ) -> bool { match self { Map ( None ) => false , Map ( Some ( Node ( l , v , _d , r , _h ) ) ) => match x . cmp ( v ) { Ordering :: Equal => true , Ordering :: Less => l . mem ( x ) , Ordering :: Greater => r . mem ( x ) , } , } }
Check whether a key is present in the map.
Check whether a key is present in the map .
self
x
&K
self
x
&K