Struct cranelift_codegen::binemit::NullTrapSink
source · [−]pub struct NullTrapSink {}
Expand description
A TrapSink
implementation that does nothing, which is convenient when
compiling code that does not rely on trapping semantics.
Trait Implementations
sourceimpl Default for NullTrapSink
impl Default for NullTrapSink
sourcefn default() -> NullTrapSink
fn default() -> NullTrapSink
Returns the “default value” for a type. Read more
sourceimpl TrapSink for NullTrapSink
impl TrapSink for NullTrapSink
sourcefn trap(&mut self, _offset: CodeOffset, _srcloc: SourceLoc, _code: TrapCode)
fn trap(&mut self, _offset: CodeOffset, _srcloc: SourceLoc, _code: TrapCode)
Add trap information for a specific offset.
Auto Trait Implementations
impl RefUnwindSafe for NullTrapSink
impl Send for NullTrapSink
impl Sync for NullTrapSink
impl Unpin for NullTrapSink
impl UnwindSafe for NullTrapSink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more