Add a comment advertising NullTrapSink.
This commit is contained in:
@@ -68,6 +68,9 @@ pub trait RelocSink {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A trait for receiving trap codes and offsets.
|
/// A trait for receiving trap codes and offsets.
|
||||||
|
///
|
||||||
|
/// If you don't need information about possible traps, you can use the
|
||||||
|
/// [`NullTrapSink`](binemit/trait.TrapSink.html) implementation.
|
||||||
pub trait TrapSink {
|
pub trait TrapSink {
|
||||||
/// Add trap information for a specific offset.
|
/// Add trap information for a specific offset.
|
||||||
fn trap(&mut self, CodeOffset, SourceLoc, TrapCode);
|
fn trap(&mut self, CodeOffset, SourceLoc, TrapCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user