pub fn find(self, x: &K) -> Option<V> {
        match self {
            Map(None) => None,
            Map(Some(Node(l, v, d, r, _h))) => match x.cmp(v) {
                Ordering::Equal => Some(*d),
                Ordering::Less => l.find(x),
                Ordering::Greater => r.find(x),
            },
        }
    }
/// Returns a copy of the current entry belonging to the key,
/// or returns None, if no such entry exists.
Returns a copy of the current entry belonging to the key,
or returns None, if no such entry exists.
Returns a copy of the current entry belonging to the key or returns None if no such entry exists .
pub fn find(self, x: &K) -> Option<V> {
        match self {
            Map(None) => None,
            Map(Some(Node(l, v, d, r, _h))) => match x.cmp(v) {
                Ordering::Equal => Some(*d),
                Ordering::Less => l.find(x),
                Ordering::Greater => r.find(x),
            },
        }
    }
pub fn find ( self , x : & K ) -> Option < V > { match self { Map ( None ) => None , Map ( Some ( Node ( l , v , d , r , _h ) ) ) => match x . cmp ( v ) { Ordering :: Equal => Some ( * d ) , Ordering :: Less => l . find ( x ) , Ordering :: Greater => r . find ( x ) , } , } }
Returns a copy of the current entry belonging to the key,
or returns None, if no such entry exists.
Returns a copy of the current entry belonging to the key or returns None if no such entry exists .
self
x
&K
self
x
&K