Trait cranelift_codegen::binemit::TrapSink
source · [−]pub trait TrapSink {
fn trap(&mut self, _: CodeOffset, _: SourceLoc, _: TrapCode);
}
Expand description
A trait for receiving trap codes and offsets.
If you don’t need information about possible traps, you can use the
NullTrapSink
implementation.
Required methods
fn trap(&mut self, _: CodeOffset, _: SourceLoc, _: TrapCode)
fn trap(&mut self, _: CodeOffset, _: SourceLoc, _: TrapCode)
Add trap information for a specific offset.