Struct wasmer_compiler_cranelift::dwarf::WriterRelocate
source · pub struct WriterRelocate {
pub relocs: Vec<Relocation>,
writer: EndianVec<RunTimeEndian>,
}
Fields§
§relocs: Vec<Relocation>
§writer: EndianVec<RunTimeEndian>
Implementations§
source§impl WriterRelocate
impl WriterRelocate
pub const FUNCTION_SYMBOL: usize = 0usize
pub fn new(endianness: Option<Endianness>) -> Self
pub fn into_section(self) -> CustomSection
Trait Implementations§
source§impl Clone for WriterRelocate
impl Clone for WriterRelocate
source§fn clone(&self) -> WriterRelocate
fn clone(&self) -> WriterRelocate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WriterRelocate
impl Debug for WriterRelocate
source§impl Writer for WriterRelocate
impl Writer for WriterRelocate
source§fn write_at(&mut self, offset: usize, bytes: &[u8]) -> Result<()>
fn write_at(&mut self, offset: usize, bytes: &[u8]) -> Result<()>
Write a slice at a given offset. Read more
source§fn write_address(&mut self, address: Address, size: u8) -> Result<()>
fn write_address(&mut self, address: Address, size: u8) -> Result<()>
Write an address. Read more
source§fn write_offset(
&mut self,
_val: usize,
_section: SectionId,
_size: u8,
) -> Result<()>
fn write_offset( &mut self, _val: usize, _section: SectionId, _size: u8, ) -> Result<()>
Write an offset that is relative to the start of the given section. Read more
source§fn write_offset_at(
&mut self,
_offset: usize,
_val: usize,
_section: SectionId,
_size: u8,
) -> Result<()>
fn write_offset_at( &mut self, _offset: usize, _val: usize, _section: SectionId, _size: u8, ) -> Result<()>
Write an offset that is relative to the start of the given section. Read more
§fn write_eh_pointer(
&mut self,
address: Address,
eh_pe: DwEhPe,
size: u8,
) -> Result<(), Error>
fn write_eh_pointer( &mut self, address: Address, eh_pe: DwEhPe, size: u8, ) -> Result<(), Error>
Write an address with a
.eh_frame
pointer encoding. Read more§fn write_eh_pointer_data(
&mut self,
val: u64,
format: DwEhPe,
size: u8,
) -> Result<(), Error>
fn write_eh_pointer_data( &mut self, val: u64, format: DwEhPe, size: u8, ) -> Result<(), Error>
Write a value with a
.eh_frame
pointer format. Read more§fn write_reference(&mut self, _symbol: usize, _size: u8) -> Result<(), Error>
fn write_reference(&mut self, _symbol: usize, _size: u8) -> Result<(), Error>
Write a reference to a symbol. Read more
§fn write_u8_at(&mut self, offset: usize, val: u8) -> Result<(), Error>
fn write_u8_at(&mut self, offset: usize, val: u8) -> Result<(), Error>
Write a u8 at the given offset.
§fn write_u16_at(&mut self, offset: usize, val: u16) -> Result<(), Error>
fn write_u16_at(&mut self, offset: usize, val: u16) -> Result<(), Error>
Write a u16 at the given offset.
§fn write_u32_at(&mut self, offset: usize, val: u32) -> Result<(), Error>
fn write_u32_at(&mut self, offset: usize, val: u32) -> Result<(), Error>
Write a u32 at the given offset.
§fn write_u64_at(&mut self, offset: usize, val: u64) -> Result<(), Error>
fn write_u64_at(&mut self, offset: usize, val: u64) -> Result<(), Error>
Write a u64 at the given offset.
§fn write_udata(&mut self, val: u64, size: u8) -> Result<(), Error>
fn write_udata(&mut self, val: u64, size: u8) -> Result<(), Error>
Write unsigned data of the given size. Read more
§fn write_sdata(&mut self, val: i64, size: u8) -> Result<(), Error>
fn write_sdata(&mut self, val: i64, size: u8) -> Result<(), Error>
Write signed data of the given size. Read more
§fn write_udata_at(
&mut self,
offset: usize,
val: u64,
size: u8,
) -> Result<(), Error>
fn write_udata_at( &mut self, offset: usize, val: u64, size: u8, ) -> Result<(), Error>
Write a word of the given size at the given offset. Read more
§fn write_uleb128(&mut self, val: u64) -> Result<(), Error>
fn write_uleb128(&mut self, val: u64) -> Result<(), Error>
Write an unsigned LEB128 encoded integer.
§fn write_sleb128(&mut self, val: i64) -> Result<(), Error>
fn write_sleb128(&mut self, val: i64) -> Result<(), Error>
Read an unsigned LEB128 encoded integer.
§fn write_initial_length(
&mut self,
format: Format,
) -> Result<InitialLengthOffset, Error>
fn write_initial_length( &mut self, format: Format, ) -> Result<InitialLengthOffset, Error>
Write an initial length according to the given DWARF format. Read more
Auto Trait Implementations§
impl Freeze for WriterRelocate
impl RefUnwindSafe for WriterRelocate
impl Send for WriterRelocate
impl Sync for WriterRelocate
impl Unpin for WriterRelocate
impl UnwindSafe for WriterRelocate
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn