Struct parity_wasm::elements::FunctionType
source · pub struct FunctionType { /* private fields */ }
Expand description
Function signature type.
Implementations§
source§impl FunctionType
impl FunctionType
sourcepub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
pub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
New function type given the params and results as vectors
sourcepub fn params_mut(&mut self) -> &mut Vec<ValueType>
pub fn params_mut(&mut self) -> &mut Vec<ValueType>
Mutable parameters in the function signature.
sourcepub fn results_mut(&mut self) -> &mut Vec<ValueType>
pub fn results_mut(&mut self) -> &mut Vec<ValueType>
Mutable type in the function signature, if any.
Trait Implementations§
source§impl Clone for FunctionType
impl Clone for FunctionType
source§fn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionType
impl Debug for FunctionType
source§impl Default for FunctionType
impl Default for FunctionType
source§impl Deserialize for FunctionType
impl Deserialize for FunctionType
source§impl Hash for FunctionType
impl Hash for FunctionType
source§impl PartialEq<FunctionType> for FunctionType
impl PartialEq<FunctionType> for FunctionType
source§fn eq(&self, other: &FunctionType) -> bool
fn eq(&self, other: &FunctionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FunctionType
impl Serialize for FunctionType
impl Eq for FunctionType
impl StructuralEq for FunctionType
impl StructuralPartialEq for FunctionType
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more