| 8 | type ClickCallback = Arc<dyn Fn() + Send + Sync>; |
| 9 | |
| 10 | pub struct Button { |
| 11 | label: String, |
| 12 | style: Style, |
| 13 | bounds: Rect, |
| 14 | on_click: Option<ClickCallback>, |
| 15 | } |
| 16 | |
| 17 | impl Button { |
| 18 | pub fn new<S: Into<String>>(label: S) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected