Struct FilterList
pub struct FilterList { /* private fields */ }
Expand description
A list of filters.
Implementations§
§impl FilterList
impl FilterList
pub fn new() -> Self
pub fn new() -> Self
Creates an empty list of filters.
pub fn add(&mut self, filter: InstructionFilter)
pub fn add(&mut self, filter: InstructionFilter)
Adds a filter to the list, and attempts to merge this filter with existing filters.
pub fn add_nomerge(&mut self, filter: InstructionFilter)
pub fn add_nomerge(&mut self, filter: InstructionFilter)
Adds a new filter to the list, but does not attempt to merge this filter with existing filters.
pub fn should_extend(&self, instr: &Instruction) -> bool
pub fn should_extend(&self, instr: &Instruction) -> bool
Returns true if there is at least one filter that partially matches instr
.
This means that all instructions starting with instr
must have at least one more byte.
pub fn matching_filter(&self, instr: &Instruction) -> Option<&InstructionFilter>
pub fn matching_filter(&self, instr: &Instruction) -> Option<&InstructionFilter>
Returns the filter that matches instr
if it exists.
Otherwise, returns None
.
pub fn next_matching_instruction(
&self,
instr: &Instruction,
) -> Option<Instruction>
pub fn next_matching_instruction( &self, instr: &Instruction, ) -> Option<Instruction>
Returns the (lexicographically) next instruction that matches one of the filters in the list.
Trait Implementations§
§impl Clone for FilterList
impl Clone for FilterList
§fn clone(&self) -> FilterList
fn clone(&self) -> FilterList
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for FilterList
impl Debug for FilterList
§impl<'de> Deserialize<'de> for FilterList
impl<'de> Deserialize<'de> for FilterList
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for FilterList
impl Serialize for FilterList
Auto Trait Implementations§
impl Freeze for FilterList
impl RefUnwindSafe for FilterList
impl Send for FilterList
impl Sync for FilterList
impl Unpin for FilterList
impl UnwindSafe for FilterList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more