Struct parity_wasm::elements::TypeSection
[−]
[src]
pub struct TypeSection(_);
Section with type declarations
Methods
impl TypeSection
[src]
fn with_types(types: Vec<Type>) -> Self
[src]
New type section with provided types
fn types(&self) -> &[Type]
[src]
List of type declarations
fn types_mut(&mut self) -> &mut Vec<Type>
[src]
List of type declarations (mutable)
Trait Implementations
impl Debug for TypeSection
[src]
impl Default for TypeSection
[src]
fn default() -> TypeSection
[src]
Returns the "default value" for a type. Read more
impl Clone for TypeSection
[src]
fn clone(&self) -> TypeSection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deserialize for TypeSection
[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