(mut self, callback: F)
| 32 | } |
| 33 | |
| 34 | pub fn on_click<F>(mut self, callback: F) -> Self |
| 35 | where |
| 36 | F: Fn() + Send + Sync + 'static |
| 37 | { |
| 38 | self.on_click = Some(Arc::new(callback)); |
| 39 | self |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | impl Component for Button { |
no outgoing calls
no test coverage detected