Struct parity_wasm::elements::CodeSection [−][src]
pub struct CodeSection(_);
Section with function bodies of the module.
Methods
impl CodeSection[src]
impl CodeSectionpub fn with_bodies(bodies: Vec<FuncBody>) -> Self[src]
pub fn with_bodies(bodies: Vec<FuncBody>) -> SelfNew 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 CodeSectionfn default() -> CodeSection[src]
fn default() -> CodeSectionReturns the "default value" for a type. Read more
impl Debug for CodeSection[src]
impl Debug for CodeSectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for CodeSection[src]
impl Clone for CodeSectionfn clone(&self) -> CodeSection[src]
fn clone(&self) -> CodeSectionReturns 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 CodeSectionfn eq(&self, other: &CodeSection) -> bool[src]
fn eq(&self, other: &CodeSection) -> boolThis 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) -> boolThis method tests for !=.
impl Deserialize for CodeSection[src]
impl Deserialize for CodeSectiontype 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 CodeSectionAuto Trait Implementations
impl Send for CodeSection
impl Send for CodeSectionimpl Sync for CodeSection
impl Sync for CodeSection