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§

Add trap information for a specific offset.

Implementors§