The trait required for generic commands. See [register_command] for example usage.
| 46 | |
| 47 | /// The trait required for generic commands. See [register_command] for example usage. |
| 48 | pub trait Command: 'static + Sync { |
| 49 | fn action(&self, view: &BinaryView); |
| 50 | fn valid(&self, view: &BinaryView) -> bool; |
| 51 | } |
| 52 | |
| 53 | impl<T> Command for T |
| 54 | where |
nothing calls this directly
no outgoing calls
no test coverage detected