pub trait FunctionCommand: 'static + Sync {
    // Required methods
    fn action(&self, view: &BinaryView, func: &Function);
    fn valid(&self, view: &BinaryView, func: &Function) -> bool;
}
Expand description

The trait required for function-associated commands. See register_for_function for example usage.

Required Methods§

source

fn action(&self, view: &BinaryView, func: &Function)

source

fn valid(&self, view: &BinaryView, func: &Function) -> bool

Implementors§

source§

impl<T> FunctionCommand for T
where T: 'static + Sync + Fn(&BinaryView, &Function),