Struct parity_wasm::elements::CodeSection
[−]
[src]
pub struct CodeSection(_);
Section with function bodies of the module.
Methods
impl CodeSection[src]
fn with_bodies(bodies: Vec<FuncBody>) -> Self[src]
New code section with specified function bodies
fn bodies(&self) -> &[FuncBody][src]
All function bodies in the section.
fn bodies_mut(&mut self) -> &mut Vec<FuncBody>[src]
All function bodies in the section, mutable.
Trait Implementations
impl Default for CodeSection[src]
fn default() -> CodeSection[src]
Returns the "default value" for a type. Read more
impl Deserialize for CodeSection[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>[src]
Deserialize type from serial i/o