Struct inkwell::object_file::Relocation
source · pub struct Relocation { /* private fields */ }
Implementations§
source§impl Relocation
impl Relocation
pub unsafe fn new( relocation: LLVMRelocationIteratorRef, object_file: LLVMObjectFileRef, ) -> Self
pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMObjectFileRef)
pub fn get_offset(&self) -> u64
pub fn get_symbols(&self) -> SymbolIterator ⓘ
pub fn get_type(&self) -> (u64, &CStr)
pub fn get_value(&self) -> &CStr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relocation
impl RefUnwindSafe for Relocation
impl !Send for Relocation
impl !Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
Blanket Implementations§
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> 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