Struct parity_wasm::elements::RelocSection
source · [−]pub struct RelocSection { /* private fields */ }
Expand description
Relocation information.
Implementations
sourceimpl RelocSection
impl RelocSection
sourcepub fn section_id(&self) -> u32
pub fn section_id(&self) -> u32
ID of the section containing the relocations described in this section.
sourcepub fn section_id_mut(&mut self) -> &mut u32
pub fn section_id_mut(&mut self) -> &mut u32
ID of the section containing the relocations described in this section (mutable).
sourcepub fn relocation_section_name(&self) -> Option<&str>
pub fn relocation_section_name(&self) -> Option<&str>
Name of the section containing the relocations described in this section.
sourcepub fn relocation_section_name_mut(&mut self) -> &mut Option<String>
pub fn relocation_section_name_mut(&mut self) -> &mut Option<String>
Name of the section containing the relocations described in this section (mutable).
sourcepub fn entries(&self) -> &[RelocationEntry]
pub fn entries(&self) -> &[RelocationEntry]
List of relocation entries.
sourcepub fn entries_mut(&mut self) -> &mut Vec<RelocationEntry>
pub fn entries_mut(&mut self) -> &mut Vec<RelocationEntry>
List of relocation entries (mutable).
sourceimpl RelocSection
impl RelocSection
Trait Implementations
sourceimpl Clone for RelocSection
impl Clone for RelocSection
sourcefn clone(&self) -> RelocSection
fn clone(&self) -> RelocSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelocSection
impl Debug for RelocSection
sourceimpl PartialEq<RelocSection> for RelocSection
impl PartialEq<RelocSection> for RelocSection
sourcefn eq(&self, other: &RelocSection) -> bool
fn eq(&self, other: &RelocSection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RelocSection) -> bool
fn ne(&self, other: &RelocSection) -> bool
This method tests for !=
.
sourceimpl Serialize for RelocSection
impl Serialize for RelocSection
impl StructuralPartialEq for RelocSection
Auto Trait Implementations
impl RefUnwindSafe for RelocSection
impl Send for RelocSection
impl Sync for RelocSection
impl Unpin for RelocSection
impl UnwindSafe for RelocSection
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more