Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
1// use crate::geometry::rect::RectF; 2// use crate::WindowContext; 3 4// struct Region { 5// pub bounds: RectF, 6// pub click_handler: Option<Rc<dyn Fn(&dyn Any, MouseEvent, &mut WindowContext)>>, 7// }