pub fn find_popup(&self, surface: &wl_surface::WlSurface) -> Option<PopupKind> {
        self.popups.iter().find_map(|p| {
            if p.popup
                .get_surface()
                .map(|s| s.as_ref().equals(surface.as_ref()))
                .unwrap_or(false)
            {
                Some(p.popup.clone())
            } else {
                None
            }
        })
    }
/// Finds the popup corresponding to the given `WlSurface`.
Finds the popup corresponding to the given `WlSurface`.
Finds the popup corresponding to the given ` WlSurface ` .
pub fn find_popup(&self, surface: &wl_surface::WlSurface) -> Option<PopupKind> {
        self.popups.iter().find_map(|p| {
            if p.popup
                .get_surface()
                .map(|s| s.as_ref().equals(surface.as_ref()))
                .unwrap_or(false)
            {
                Some(p.popup.clone())
            } else {
                None
            }
        })
    }
pub fn find_popup ( & self , surface : & wl_surface :: WlSurface ) -> Option < PopupKind > { self . popups . iter ( ) . find_map ( | p | { if p . popup . get_surface ( ) . map ( | s | s . as_ref ( ) . equals ( surface . as_ref ( ) ) ) . unwrap_or ( false ) { Some ( p . popup . clone ( ) ) } else { None } } ) }
Finds the popup corresponding to the given `WlSurface`.
Finds the popup corresponding to the given ` WlSurface ` .
&self
surface
&wl_surface::WlSurface
&self
surface
&wl_surface::WlSurface