pub struct DebugSection { /* private fields */ }Implementations§
Source§impl DebugSection
impl DebugSection
pub fn new(name: &str, name_offset: u32, data: Vec<u8>) -> Self
pub fn name(&self) -> &str
pub fn size(&self) -> u64
pub fn bytecode(&self) -> Vec<u8> ⓘ
pub fn set_offset(&mut self, offset: u64)
pub fn offset(&self) -> u64
pub fn set_name_offset(&mut self, name_offset: u32)
pub fn name_offset(&self) -> u32
pub fn section_header_bytecode(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for DebugSection
impl Clone for DebugSection
Source§fn clone(&self) -> DebugSection
fn clone(&self) -> DebugSection
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DebugSection
impl RefUnwindSafe for DebugSection
impl Send for DebugSection
impl Sync for DebugSection
impl Unpin for DebugSection
impl UnsafeUnpin for DebugSection
impl UnwindSafe for DebugSection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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