pub fn find(&self, surface: &wl_surface::WlSurface) -> Option<&LayerSurface> {
        self.surfaces.iter().find_map(|l| {
            if l.surface
                .get_surface()
                .map(|s| s.as_ref().equals(surface.as_ref()))
                .unwrap_or(false)
            {
                Some(l)
            } else {
                None
            }
        })
    }
/// Finds the layer corresponding to the given `WlSurface`.
Finds the layer corresponding to the given `WlSurface`.
Finds the layer corresponding to the given ` WlSurface ` .
pub fn find(&self, surface: &wl_surface::WlSurface) -> Option<&LayerSurface> {
        self.surfaces.iter().find_map(|l| {
            if l.surface
                .get_surface()
                .map(|s| s.as_ref().equals(surface.as_ref()))
                .unwrap_or(false)
            {
                Some(l)
            } else {
                None
            }
        })
    }
pub fn find ( & self , surface : & wl_surface :: WlSurface ) -> Option < & LayerSurface > { self . surfaces . iter ( ) . find_map ( | l | { if l . surface . get_surface ( ) . map ( | s | s . as_ref ( ) . equals ( surface . as_ref ( ) ) ) . unwrap_or ( false ) { Some ( l ) } else { None } } ) }
Finds the layer corresponding to the given `WlSurface`.
Finds the layer corresponding to the given ` WlSurface ` .
&self
surface
&wl_surface::WlSurface
&self
surface
&wl_surface::WlSurface