Struct parity_wasm_cp::elements::TypeSection [−][src]
pub struct TypeSection(_);
Section with type declarations
Methods
impl TypeSection
[src]
impl TypeSection
pub fn with_types(types: Vec<Type>) -> Self
[src]
pub fn with_types(types: Vec<Type>) -> Self
New 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 TypeSection
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 Default for TypeSection
[src]
impl Default for TypeSection
fn default() -> TypeSection
[src]
fn default() -> TypeSection
Returns the "default value" for a type. Read more
impl Clone for TypeSection
[src]
impl Clone for TypeSection
fn clone(&self) -> TypeSection
[src]
fn clone(&self) -> TypeSection
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 TypeSection
[src]
impl PartialEq for TypeSection
fn eq(&self, other: &TypeSection) -> bool
[src]
fn eq(&self, other: &TypeSection) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for TypeSection
[src]
impl Deserialize for TypeSection
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 TypeSection
[src]
impl Serialize for TypeSection
Auto Trait Implementations
impl Send for TypeSection
impl Send for TypeSection
impl Sync for TypeSection
impl Sync for TypeSection