[][src]Struct parity_wasm::elements::FunctionType

pub struct FunctionType { /* fields omitted */ }

Function signature type.

Implementations

impl FunctionType[src]

pub fn new(params: Vec<ValueType>, return_type: Option<ValueType>) -> Self[src]

New function type given the signature in-params(params) and return type (return_type)

pub fn form(&self) -> u8[src]

Function form (currently only valid value is 0x60)

pub fn params(&self) -> &[ValueType][src]

Parameters in the function signature.

pub fn params_mut(&mut self) -> &mut Vec<ValueType>[src]

Mutable parameters in the function signature.

pub fn return_type(&self) -> Option<ValueType>[src]

Return type in the function signature, if any.

pub fn return_type_mut(&mut self) -> &mut Option<ValueType>[src]

Mutable type in the function signature, if any.

Trait Implementations

impl Clone for FunctionType[src]

impl Debug for FunctionType[src]

impl Default for FunctionType[src]

impl Deserialize for FunctionType[src]

type Error = Error

Serialization error produced by deserialization routine.

impl Eq for FunctionType[src]

impl Hash for FunctionType[src]

impl PartialEq<FunctionType> for FunctionType[src]

impl Serialize for FunctionType[src]

type Error = Error

Serialization error produced by serialization routine.

impl StructuralEq for FunctionType[src]

impl StructuralPartialEq for FunctionType[src]

Auto Trait Implementations

impl RefUnwindSafe for FunctionType

impl Send for FunctionType

impl Sync for FunctionType

impl Unpin for FunctionType

impl UnwindSafe for FunctionType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.