Struct cranelift_codegen::binemit::NullRelocSink
source · [−]pub struct NullRelocSink {}
Expand description
A RelocSink
implementation that does nothing, which is convenient when
compiling code that does not relocate anything.
Trait Implementations
sourceimpl Default for NullRelocSink
impl Default for NullRelocSink
sourcefn default() -> NullRelocSink
fn default() -> NullRelocSink
Returns the “default value” for a type. Read more
sourceimpl RelocSink for NullRelocSink
impl RelocSink for NullRelocSink
sourcefn reloc_external(
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)
fn reloc_external(
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)
Add a relocation referencing an external symbol at the current offset.
sourcefn reloc_constant(&mut self, _: CodeOffset, _: Reloc, _: ConstantOffset)
fn reloc_constant(&mut self, _: CodeOffset, _: Reloc, _: ConstantOffset)
Add a relocation referencing a constant.
sourcefn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)
fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)
Add a relocation referencing a jump table.
sourcefn add_call_site(&mut self, _: Opcode, _: CodeOffset, _: SourceLoc)
fn add_call_site(&mut self, _: Opcode, _: CodeOffset, _: SourceLoc)
Track a call site whose return address is the given CodeOffset, for the given opcode. Does nothing in general, only useful for certain embedders (SpiderMonkey). Read more
Auto Trait Implementations
impl RefUnwindSafe for NullRelocSink
impl Send for NullRelocSink
impl Sync for NullRelocSink
impl Unpin for NullRelocSink
impl UnwindSafe for NullRelocSink
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