Struct parity_wasm::elements::FunctionType [−][src]
pub struct FunctionType { /* fields omitted */ }
Function signature type.
Methods
impl FunctionType
[src]
impl FunctionType
pub fn new(params: Vec<ValueType>, return_type: Option<ValueType>) -> Self
[src]
pub fn new(params: Vec<ValueType>, return_type: Option<ValueType>) -> Self
New function type given the signature in-params(params
) and return type (return_type
)
pub fn form(&self) -> u8
[src]
pub fn form(&self) -> u8
Function form (currently only valid value is 0x60
)
pub fn params(&self) -> &[ValueType]
[src]
pub fn params(&self) -> &[ValueType]
Parameters in the function signature.
pub fn params_mut(&mut self) -> &mut Vec<ValueType>
[src]
pub fn params_mut(&mut self) -> &mut Vec<ValueType>
Mutable parameters in the function signature.
pub fn return_type(&self) -> Option<ValueType>
[src]
pub fn return_type(&self) -> Option<ValueType>
Return type in the function signature, if any.
pub fn return_type_mut(&mut self) -> &mut Option<ValueType>
[src]
pub fn return_type_mut(&mut self) -> &mut Option<ValueType>
Mutable type in the function signature, if any.
Trait Implementations
impl Debug for FunctionType
[src]
impl Debug for FunctionType
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 Clone for FunctionType
[src]
impl Clone for FunctionType
fn clone(&self) -> FunctionType
[src]
fn clone(&self) -> FunctionType
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 FunctionType
[src]
impl PartialEq for FunctionType
fn eq(&self, other: &FunctionType) -> bool
[src]
fn eq(&self, other: &FunctionType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FunctionType) -> bool
[src]
fn ne(&self, other: &FunctionType) -> bool
This method tests for !=
.
impl Default for FunctionType
[src]
impl Default for FunctionType
impl Deserialize for FunctionType
[src]
impl Deserialize for FunctionType
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 FunctionType
[src]
impl Serialize for FunctionType
Auto Trait Implementations
impl Send for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Sync for FunctionType