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_command_for_range for example usage.
Required Methods§
fn action(&self, view: &BinaryView, range: Range<u64>)
fn valid(&self, view: &BinaryView, range: Range<u64>) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".