(&self)
| 288 | } |
| 289 | |
| 290 | pub fn all_windows(&self) -> impl Iterator<Item = Ref<'_, Window>> { |
| 291 | self.workspaces.iter().flat_map(|w| w.windows()) |
| 292 | } |
| 293 | |
| 294 | pub fn workspace_from_window(&mut self, window: &Window) -> Option<&mut Workspace> { |
| 295 | self.workspaces.iter_mut().find(|w| w.contains_window(window)) |
no test coverage detected