pub struct CombinedControlFlowHandler<H1, H2>where
H1: HandleControlFlow,
H2: HandleControlFlow,{ /* private fields */ }Expand description
A HandleControlFlow instance for combining two sub handlers
Implementations§
Source§impl<H1, H2> CombinedControlFlowHandler<H1, H2>where
H1: HandleControlFlow,
H2: HandleControlFlow,
impl<H1, H2> CombinedControlFlowHandler<H1, H2>where
H1: HandleControlFlow,
H2: HandleControlFlow,
Sourcepub fn new(handler1: H1, handler2: H2) -> Self
pub fn new(handler1: H1, handler2: H2) -> Self
Create a new CombinedControlFlowHandler
Sourcepub fn into_inner(self) -> (H1, H2)
pub fn into_inner(self) -> (H1, H2)
Consume the handler and get the original two handler
Sourcepub fn handler1_mut(&mut self) -> &mut H1
pub fn handler1_mut(&mut self) -> &mut H1
Get unique reference to handler1
Sourcepub fn handler2_mut(&mut self) -> &mut H2
pub fn handler2_mut(&mut self) -> &mut H2
Get unique reference to handler2
Trait Implementations§
Source§impl<H1, H2> HandleControlFlow for CombinedControlFlowHandler<H1, H2>where
H1: HandleControlFlow,
H2: HandleControlFlow,
impl<H1, H2> HandleControlFlow for CombinedControlFlowHandler<H1, H2>where
H1: HandleControlFlow,
H2: HandleControlFlow,
Source§type Error = CombinedError<H1, H2>
type Error = CombinedError<H1, H2>
Error of control flow handler
Source§type CachedKey = (Option<<H1 as HandleControlFlow>::CachedKey>, Option<<H2 as HandleControlFlow>::CachedKey>)
type CachedKey = (Option<<H1 as HandleControlFlow>::CachedKey>, Option<<H2 as HandleControlFlow>::CachedKey>)
Available on crate feature
cache only.Cached key returned by
take_cache. Read moreSource§fn at_decode_begin(&mut self) -> Result<(), Self::Error>
fn at_decode_begin(&mut self) -> Result<(), Self::Error>
Callback at begin of decoding. Read more
Source§fn on_new_block(
&mut self,
block_addr: u64,
transition_kind: ControlFlowTransitionKind,
cache: bool,
) -> Result<(), Self::Error>
fn on_new_block( &mut self, block_addr: u64, transition_kind: ControlFlowTransitionKind, cache: bool, ) -> Result<(), Self::Error>
Callback when a new basic block is met. Read more
Source§fn cache_prev_cached_key(
&mut self,
(cached_key1, cached_key2): Self::CachedKey,
) -> Result<(), Self::Error>
fn cache_prev_cached_key( &mut self, (cached_key1, cached_key2): Self::CachedKey, ) -> Result<(), Self::Error>
Available on crate feature
cache only.Merge a previous cached key into cache Read more
Source§fn take_cache(&mut self) -> Result<Option<Self::CachedKey>, Self::Error>
fn take_cache(&mut self) -> Result<Option<Self::CachedKey>, Self::Error>
Available on crate feature
cache only.Collect all currently cached information and generate a cached key. This could clear
the cache depending on your implementing logic. Read more
Auto Trait Implementations§
impl<H1, H2> Freeze for CombinedControlFlowHandler<H1, H2>
impl<H1, H2> RefUnwindSafe for CombinedControlFlowHandler<H1, H2>where
H1: RefUnwindSafe,
H2: RefUnwindSafe,
impl<H1, H2> Send for CombinedControlFlowHandler<H1, H2>
impl<H1, H2> Sync for CombinedControlFlowHandler<H1, H2>
impl<H1, H2> Unpin for CombinedControlFlowHandler<H1, H2>
impl<H1, H2> UnwindSafe for CombinedControlFlowHandler<H1, H2>where
H1: UnwindSafe,
H2: UnwindSafe,
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