Struct inkwell::object_file::Section
source · pub struct Section { /* private fields */ }
Implementations§
source§impl Section
impl Section
pub unsafe fn new( section: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef ) -> Self
pub unsafe fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef)
pub fn get_name(&self) -> Option<&CStr>
pub fn size(&self) -> u64
pub fn get_contents(&self) -> &[u8] ⓘ
pub fn get_address(&self) -> u64
pub fn get_relocations(&self) -> RelocationIterator ⓘ
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Section
impl !Send for Section
impl !Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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