pub trait RangeCommand: 'static + Sync {
    // Required methods
    fn action(&self, view: &BinaryView, range: Range<u64>);
    fn valid(&self, view: &BinaryView, range: Range<u64>) -> bool;
}
Expand description

The trait required for range-associated commands. See register_for_range for example usage.

Required Methods§

source

fn action(&self, view: &BinaryView, range: Range<u64>)

source

fn valid(&self, view: &BinaryView, range: Range<u64>) -> bool

Implementors§

source§

impl<T> RangeCommand for T
where T: 'static + Sync + Fn(&BinaryView, Range<u64>),