[−][src]Struct parity_wasm::elements::FunctionType
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][+]
impl Eq for FunctionType
[src]
impl Hash for FunctionType
[src][+]
impl PartialEq<FunctionType> for FunctionType
[src][+]
impl Serialize for FunctionType
[src][+]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,