Struct parity_wasm::elements::TypeSection [−][src]
pub struct TypeSection(_);
Section with type declarations
Methods
impl TypeSection[src]
impl TypeSectionpub fn with_types(types: Vec<Type>) -> Self[src]
pub fn with_types(types: Vec<Type>) -> SelfNew type section with provided types
pub fn types(&self) -> &[Type][src]
pub fn types(&self) -> &[Type]List of type declarations
pub fn types_mut(&mut self) -> &mut Vec<Type>[src]
pub fn types_mut(&mut self) -> &mut Vec<Type>List of type declarations (mutable)
Trait Implementations
impl Debug for TypeSection[src]
impl Debug for TypeSectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for TypeSection[src]
impl Default for TypeSectionfn default() -> TypeSection[src]
fn default() -> TypeSectionReturns the "default value" for a type. Read more
impl Clone for TypeSection[src]
impl Clone for TypeSectionfn clone(&self) -> TypeSection[src]
fn clone(&self) -> TypeSectionReturns 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 TypeSection[src]
impl PartialEq for TypeSectionfn eq(&self, other: &TypeSection) -> bool[src]
fn eq(&self, other: &TypeSection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TypeSection) -> bool[src]
fn ne(&self, other: &TypeSection) -> boolThis method tests for !=.
impl Deserialize for TypeSection[src]
impl Deserialize for TypeSectiontype 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 TypeSection[src]
impl Serialize for TypeSectionAuto Trait Implementations
impl Send for TypeSection
impl Send for TypeSectionimpl Sync for TypeSection
impl Sync for TypeSection