Struct parity_wasm::elements::CodeSection [−][src]
pub struct CodeSection(_);
Section with function bodies of the module.
Methods
impl CodeSection
[src]
impl CodeSection
pub fn with_bodies(bodies: Vec<FuncBody>) -> Self
[src]
pub fn with_bodies(bodies: Vec<FuncBody>) -> Self
New code section with specified function bodies
pub fn bodies(&self) -> &[FuncBody]
[src]
pub fn bodies(&self) -> &[FuncBody]
All function bodies in the section.
pub fn bodies_mut(&mut self) -> &mut Vec<FuncBody>
[src]
pub fn bodies_mut(&mut self) -> &mut Vec<FuncBody>
All function bodies in the section, mutable.
Trait Implementations
impl Default for CodeSection
[src]
impl Default for CodeSection
fn default() -> CodeSection
[src]
fn default() -> CodeSection
Returns the "default value" for a type. Read more
impl Debug for CodeSection
[src]
impl Debug for CodeSection
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CodeSection
[src]
impl Clone for CodeSection
fn clone(&self) -> CodeSection
[src]
fn clone(&self) -> CodeSection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for CodeSection
[src]
impl PartialEq for CodeSection
fn eq(&self, other: &CodeSection) -> bool
[src]
fn eq(&self, other: &CodeSection) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CodeSection) -> bool
[src]
fn ne(&self, other: &CodeSection) -> bool
This method tests for !=
.
impl Deserialize for CodeSection
[src]
impl Deserialize for CodeSection
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
Deserialize type from serial i/o
impl Serialize for CodeSection
[src]
impl Serialize for CodeSection
Auto Trait Implementations
impl Send for CodeSection
impl Send for CodeSection
impl Sync for CodeSection
impl Sync for CodeSection