pub struct Recorder {
pub events: Vec<RecorderEvent>,
}Expand description
A listener that records events in the order they occur.
Fields§
§events: Vec<RecorderEvent>Implementations§
Trait Implementations§
Source§impl InsertionListener for Recorder
impl InsertionListener for Recorder
Source§fn notify_operation_inserted(
&mut self,
_ctx: &Context,
operation: Ptr<Operation>,
)
fn notify_operation_inserted( &mut self, _ctx: &Context, operation: Ptr<Operation>, )
Notify that an operation has been inserted.
Source§fn notify_block_inserted(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
fn notify_block_inserted(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
Notify that a block has been inserted.
Source§impl RewriteListener for Recorder
impl RewriteListener for Recorder
Source§fn notify_operation_erasure(&mut self, _ctx: &Context, op: Ptr<Operation>)
fn notify_operation_erasure(&mut self, _ctx: &Context, op: Ptr<Operation>)
Notify that an operation is about to be erased.
Source§fn notify_value_use_replacement(
&mut self,
ctx: &Context,
old_value: Value,
new_value: Value,
)
fn notify_value_use_replacement( &mut self, ctx: &Context, old_value: Value, new_value: Value, )
Notify that all uses of a value are about to be replaced.
Source§fn notify_block_erasure(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
fn notify_block_erasure(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
Notify that a block is about to be erased.
Source§fn notify_value_type_change(
&mut self,
_ctx: &Context,
value: Value,
old_type: TypeHandle,
new_type: TypeHandle,
)
fn notify_value_type_change( &mut self, _ctx: &Context, value: Value, old_type: TypeHandle, new_type: TypeHandle, )
Notify that a value type changed.
Source§fn notify_region_erasure(&mut self, _ctx: &Context, region: Ptr<Region>)
fn notify_region_erasure(&mut self, _ctx: &Context, region: Ptr<Region>)
Notify that a region is about to be erased.
Source§fn notify_operation_unlinking(&mut self, ctx: &Context, op: Ptr<Operation>)
fn notify_operation_unlinking(&mut self, ctx: &Context, op: Ptr<Operation>)
Notify that an operation is about to be unlinked.
Source§fn notify_block_unlinking(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
fn notify_block_unlinking(&mut self, _ctx: &Context, block: Ptr<BasicBlock>)
Notify that a block is about to be unlinked.
Auto Trait Implementations§
impl !RefUnwindSafe for Recorder
impl !UnwindSafe for Recorder
impl Freeze for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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